![]() With a new branch created, the –set-upstream switch must be run the first time a push is performed. The git switch replaced checkout in a 2020 Git release. ![]() Note that in this example I use the git switch command to create and move to a new branch, rather than the git checkout command. Git branch -a main * new-branch remotes/origin/HEAD -> origin/main remotes/origin/main remotes/origin/new-branch There are many ways to create branches in Git.Ī git branch -a command will verify that the new Git branch to be pushed to the remote GitHub repo was indeed created locally. To create a new local branch to be pushed to the remote GitHub repo, just run a Git branch, switch or checkout command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |