0

I have pushed some files to "test" branch from my computer #1 (GitHub shows that branch with all pushed files).
I now want to get them on my computer #2. I tried fetching, however it doesn't do anything.
All I get is:

$ git fetch --all
Fetching origin

$

How do I get branches and files on computer #2?

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
mteXD
  • 33
  • 5
  • Does this answer your question? [How to sync git pull request from another computer?](https://stackoverflow.com/questions/43556053/how-to-sync-git-pull-request-from-another-computer) – Cristik Sep 19 '21 at 05:49

2 Answers2

1

Try

git checkout test

This changes your current branch to the branch test, where your files are on.

flotho
  • 56
  • 8
0

You should simply use git pull.

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74
  • Note that `git pull` requires the user to have checked out the desired branch before doing the pull. – Cristik Sep 04 '21 at 05:54