Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

You can do the following (assuming you are checked out on master and want to push to a remote branch master):

Set up the 'remote' if you don't have it already

# git remote add origin ssh://...

Now configure master to know to track:

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

And push:

# git push origin master

You can do the following (assuming you are checked out on master and want to push to a remote branch master):

Set up the 'remote' if you don't have it already

# git remote add origin ssh://...

Now configure master to know to track:

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

And push:

# git push origin master

You can do the following (assuming you are checked out on master and want to push to a remote branch master):

Set up the 'remote' if you don't have it already

git remote add origin ssh://...

Now configure master to know to track:

git config branch.master.remote origin
git config branch.master.merge refs/heads/master

And push:

git push origin master
Copy edited.
Source Link
Peter Mortensen
  • 31.2k
  • 22
  • 109
  • 132

You can do thisthe following (assuming you are checked out on master and want to push to a remote branch master):

setSet up the 'remote' if you dontdon't have it already

# git remote add origin ssh://...

nowNow configure master to know to track:

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

andAnd push:

# git push origin master

You can do this (assuming you are checked out on master and want to push to a remote branch master:

set up the 'remote' if you dont have it already

# git remote add origin ssh://...

now configure master to know to track

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

and push

# git push origin master

You can do the following (assuming you are checked out on master and want to push to a remote branch master):

Set up the 'remote' if you don't have it already

# git remote add origin ssh://...

Now configure master to know to track:

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

And push:

# git push origin master
added 22 characters in body
Source Link
innaM
  • 47.6k
  • 5
  • 68
  • 88

You can do this (assuming you are checked out on master and want to push to a remote branch master:

set up the 'remote' if you dont have it already

git remote add origin ssh://...

# git remote add origin ssh://...

now configure master to know to track

git config branch.master.remote origin

git config branch.master.merge refs/heads/master

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

and push

git push origin master

# git push origin master

You can do this (assuming you are checked out on master and want to push to a remote branch master:

set up the 'remote' if you dont have it already

git remote add origin ssh://...

now configure master to know to track

git config branch.master.remote origin

git config branch.master.merge refs/heads/master

and push

git push origin master

You can do this (assuming you are checked out on master and want to push to a remote branch master:

set up the 'remote' if you dont have it already

# git remote add origin ssh://...

now configure master to know to track

# git config branch.master.remote origin
# git config branch.master.merge refs/heads/master

and push

# git push origin master
Source Link
Paul Hedderly
  • 3.9k
  • 2
  • 19
  • 13
Loading