(You don't need to worry about that for the moment if you're new to git, but it will mean that git provides more helpful status information and various commands have more useful default actions. The first time you do that push command, you may want to do git push -u origin my-work, which sets configuration options that make the branch my-work in the origin repository considered as the default "upstream" branch for your my-work branch. Update: a clarification due to Michael Minton's helpful comment above: this will push your my-work branch to a branch called my-work in the remote repository, creating it if necessary - if you meant something different, it would be best to edit your question to clarify that point. It's known as a "remote", in git terminology. git status On branch update-readme Changes not staged for commit: (use git add. Origin is a nickname for the repository you cloned from. Lets try to create a new local branch, and push that to Bitbucket. After it’s tested, merge the hotfix branch, and push to production. To push that branch to the repository that you cloned from, you should do: git push origin my-work Or, as a shortcut for those two commands, you can just do: git checkout -b my-work You can create a new branch called my-work (based on your current commit) and switch to that branch with: git branch my-work
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |