why is there a GitHub folder on my computers boot drive? - github

I use GitHub. I thought the files were stored on the website. so why do I have a GitHub folder on my desktop (it takes up a lot of bootdrive space)? The GitHub folder has subfolders with the names of my repositories
C:\Users\cches\Documents\GitHub

That is choice made by the tool you are using when working with GitHub: you are using GitHub Desktop.
And GitHub Desktop chooses to store its local cloned repos in %USERPROFILE%/Documents/GitHub (as shown in issue 1663)
You should be able to delete those stored repos, clone only the ones you need, and File | Add existing repository in Desktop, as in issue 2851.

Related

Azure DevOps wiki .attachments folder

is there a way to browse ".attachments" folder from the Azure DevOps wiki page?
I insert images, later want to check folder content but not find a way to do it.
just fin the way to browse this folder.
The wiki create a repository not visible in the repos list. you can browse it with this url:
https://dev.azure.com/MyOrganisation/MyProject/_git/MyProject.wiki
As of until today, one solution that worked for me is to clone the wiki repo to you local pc, let say Desktop and then, if you ever uploaded a file or image, you should have the .attachments folder, located in "your-cloned-repo/.attachments". Then you can delete or edit the file and push via git.

GitHub GUI move folder from one repo to another

I have multiple repositories under my account, and I placed a folder into the incorrect repo.
Is there a way use the GitHub web interface to move that folder from one repo to another?
From GitHub GUI alone, I don't think so.
You can delete files from the web GUI, but you still need to push your folder content from a local cloned repo (the right one this time)
Note: even if GitHub GUI referred to GitHub Desktop, you would still need to push.

Eclipse - sharing project directory with multiple users

We are trying to set up Eclipse so that two users can share the same project directory on our server. Is this possible? Every time we try, it creates a new folder and project.
Thanks!
Chris
No, this isn't possible. Eclipse only supports a single user accessing a workspace (not just a project) at a time.
Use a source control system such as Git or SVN to share code. Eclipse supports many such systems and has extensive sharing support in the 'Team' menus.
The best way to do this would be to use source control.
Sharing the actual workspace or the files with different eclipse instance is a recipe for trouble.
An easy way to do this would be to install git on your machine and also on his machine. Eclipse actually already has git in it ready to go so you probably dont need to install anything.
The one with the files locally will create a repo locally on his computer and commit the files to it.
Next you want to init a new empty repository on a shared folder and push your local chances to this as you would to github for example.
Your partner can then git clone from this repository to his machine and work locally.
Each of you will develop on your own copy and commit your changes locally. You will share your changes by pushing your commits in that central repo and pulling from it to get changes from your partner.
You could also just open an account on GitHub, GitLab or BitBucket (there are many others too) and use that instead of a shared folder. big advantage with these services is that they will be available from anywhere.

GitHub support for multiple directories

ALL,
I am managing multiple projects. All of them located on the GitHub and I'm using GitHub for Windows GUI and GitHub Shell.
Recently one of the projects got updated with the really big file name and so in order to keep the GitHub happy I had to move it from the standard place: c:\documents and settings\\My Documents\GitHub to just c:.
This created a disaster as I currently have two places to manage.
Is it possible to keep GitHub GUI happy and stop making new repository on the C:\? In other words, can I configure GitHub to use 2 source directories?
Thank you.
You can drag the root folder of a git repo (the one under c:\ in your case) from Windows Explorer onto the start screen in GitHub for Windows. Then it can see your repo and can manage it in your non-default location.
Not for a single repository.
You could move the entire repo to the C: drive.
Or you could manage 2 repositories, one in My Documents and the other on the C: drive.

How to upload a file into a repo?

I have a free version github account where I created a repo and I need to add a 670KB text file (it has test data) into this repo. I use IE browser and Windows XP OS, and haven't downloaded or installed any gihub software or app into my local system.
How do you directly upload the file into the repo without creating a file and then copying the content?
Github is supposed to be used wit git, a version control system. You need to use git in order to download/upload/update files inside a github repo.
You can also create a file directly inside Github by clicking on the little button on the right of your repo's name:
And then you can modify it inside Github by clicking on it.