0

I have my project on two computers and I want to download all changes from computer 1 to computer 2. I use git fetch --all for it, but it don't load all the changes. I make commit every day on computer 1 and on computer 2 github says, that the last commit was made 5 days ago. What is wrong?

enter image description here

enter image description here

Edit 1

enter image description here

Amazing User
  • 3,473
  • 10
  • 36
  • 75

2 Answers2

2

If you have to push the code to upstream(github/bitbucket repo) from computer1, it will available there.

we use git push <remote name> <branch name>

You already have remote name : origin so use it

From upstream you need to get that data.

So normal we clone it first, or get add a remote to pull the code.

In your case, instead of git fetch you need git pull upstream master,so that the code will be fetch and merged too.

And it shows you don't have proper access to the repo to push as you misplace remote at git push. Even remote is consider as a name here. so use your remote name which is display on git remote -v

Remote has a name ,so use git push origin master to push the code

Shivkumar kondi
  • 6,458
  • 9
  • 31
  • 58
1

git status, git remote -v AND git push origin master Do these from the computer which has your committed changes

Chesser
  • 455
  • 3
  • 9