简体   繁体   中英

git command from mac terminal to point to branch instead of master

I am trying to push changes from local file to git . I am using mac terminal git commands . Currently "git status" command shows below

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

How do I change git to point to a branch which is created under this master ?

Currently when I do git status , see above , it is pointing to origin/master ..

No: it points to master.
Only a git checkout <branch> would change that to another (existing) branch.

See the list of your current branches with git branch

See more with learngitbranching.js.org

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM