‘git checkout feature-user-location’ switches to the ‘feature-user-location’ branch. The branch is switched to the feature-user-location branch, and the specified commit is applied to the branch.A commit is being copied from the feature-user-location branch to the master branch.The commit is being cherry picked as the new HEAD of the commit history.A commit is being copied from its original branch over to the feature-user-location branch.The commit is being tagged for release on the feature-user-location branch.Looking at the following commands, describe what is happening. The last 5 git versions you’ve installed.An inline editor for modifying remote repositories.A list of remote repositories and their URLs.What will the following command print to the Terminal? Files are staged in alphabetical order.Which of the following is true when you use the following command? Checkout the beta branch and run git merge push-notifications.Delete the push-notifications branch and it will be committed to the master branch automatically.Checkout the master branch and run git merge beta -> push-notifications.Checkout the push-notifications branch and run git merge beta.You’ve just finished the notification feature in the push-notification branch, and you want to commit it to beta branch. Your current project has several branches master, beta, and push-notifications. This whole operation could be a way to take 5 commits from a branch in which you started a new feature and squash them to a single commit, a meaningful one. This command sets the state of the index to be as it would just after a merge from that commit. git merge -squash is where the branch was just before the previous command (again, see man gitrevisions). As it is a hard reset, it will also overwrite every change in the working tree as well. git reset -hard HEAD~5 resets the current branch to the commit just before the last 5 (see man gitrevisions for details about this notation and other cool alternatives like days ago}).They merge the last five commits into a new branch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |