For instance:
I have a local repo branch ‘master’, and a remote repo branch ‘r-master’ with a directory ‘dir1’, I’d like to push ‘master’ to ‘r-master/dir1’ and making ‘master’ to keep track of ‘r-master/dir1’, is that possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Branches and directories are two separate concepts in Git (as oppose to SVN where directories represents branches or tag: See “Git – Store branches in separate local directories“).
So you can push
mastertor-master, but not tor-master/dir1(with
-uor--set-upstreamif you need tracking: seeu” do? “git push -u origin master” vs “git push origin master”“git configandgit push --set-upstream“)