… all you need to do is choose the Create New Repository option in GitHub Desktop,Ĭhoose the TopLevelDirectory as a target and give it the name ProjectName as the name of the local repository. | - File2 not for GitHub or version control | - File1 not for GitHub or version control So, if your directory structure looks like … When GitHub Desktop creates or adds a new local repository it always wants the folder name to be the same as the name of the repository. You just create a new local repository in GitHub Desktop and then push it up to GitHub. This operation is simple if your repository on GitHub is to have the same name as the local folder on the PC. Scenario 1: The Repository and the Local Folder Have the Same Name It is not likely anything will go wrong in a way that affects your work - but why take chances. Warning, you should always make a backup copy of your files before messing about with GitHub Desktop. It up to GitHub and automatically create a repository for it there. Ultimately, all you really want to do is just place the local folder under some sort of git version control and then move You do have the GitHub Desktop GUI tool though. You don't particularly want to mess with all that sort of thing. Furthermore, you do not have the git command line tools available (such as git bash) and, what is more, Here is the scenario: you have a GitHub account and you also have some work in a folder on your Windows PC you would like to Creating a GitHub Repository from an Existing Project or Folder using GitHub Desktop
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |