Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 4

Noob doesn't know how to coordinate online and local repositories - Github Desktop

I created an online Github Pages repository via the website.  I've installed Github Desktop to handle my files locally.  Problem is that the online repository that I've downloaded to github desktop doesn't match my local files.  I don't know where it's storing it, or whatever it does.  How do I line up my local copies with the online copies?

3 Replies
GitHub Staff
Message 2 of 4

Re: Noob doesn't know how to coordinate online and local repositories - Github Desktop

@revo-lutionist one thing about GitHub Desktop that can be confusing at first is that it is not a file browser -- it only shows changes that have been made to your files, or when you create a new file. If you need to view all of the local files in your repository you can go to the menu and select `Repository` > `Open in Explorer`. You can then directly view your files using your favorite text editor or IDE. You can also launch a default text editor from the same menu in GitHub Desktop.

 

>How do I line up my local copies with the online copies?

 

If you cloned your repository from GitHub using GitHub Desktop then your local and remote repositories should be synced -- unless you made changes in the remote repository on GitHub already using the built-in text editor. In that case GitHub Desktop should show that there are new changes that need to be pulled down via the `Pull origin` button that will appear.

 

I'd recommend taking a read through this guide for some helpful tips on getting started with GitHub Desktop:

 

https://help.github.com/en/desktop/getting-started-with-github-desktop/creating-your-first-repositor...

 

If you have any further questions please let me know!

 

Highlighted
Copilot Lvl 2
Message 3 of 4

Re: Noob doesn't know how to coordinate online and local repositories - Github Desktop

The problem is that my local files that I work on and the local github repository are different.  I created the online repository by uploading the files.  Then I installed github desktop and cloned the online repository.  So I've now got two repositories on my local machine.  I want to line up the github repository with the actual files that I use on my local machine.

Highlighted
Ground Controller Lvl 1
Message 4 of 4

Re: Noob doesn't know how to coordinate online and local repositories - Github Desktop

I was not seeing repository created online. Just the local files. Fetching origin did not work. Signing out and signing back in fixed the issue. I can now clone successfully to my local drive