Now it's time to get your first change reviewed and merge the branch. (use "git push" to publish your local commits) One of the most important things to remember when working in branches is that you want to be sure the branch you're making changes to is the correct branch. The command will look something like this: $ git checkout test-1 Switched to branch 'test-1' Your branch is ahead of 'origin/test-1' by 3 commits. Use the git checkout command to change the focus back to your other branch.nothing to commit, working tree clean You can see what branch you're on and that the branch is currently up to date with your remote (origin) branch. Use the git status command and you'll see something like this: $ git status On branch test-2 Your branch is up-to-date with 'origin/test-2'.This is critical to remember when you are working in any branching workflow. You should see a list of branches something like this: $ git branch main test-1 * test-2 The branch with the asterisk * is the active branch.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |