EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
git checkout [branch name]
|
|
git show [commit]
|
|
git tag [commitID]
|
|
git rm [file]
|
Detailed explanation-1: -Tag the commit with this command: git tag-a M1 e3afd034-m “Tag Message” Specify the tag in the git push command:: git push origin M1. 06-Oct-2021
Detailed explanation-2: -Git allows you to do so. To create a tag from an older commit, run the below command: < git tag <tagname> < reference of commit>
Detailed explanation-3: -Commit IDs are unique SHA-1 hashes that are created whenever a new commit is recorded. If you specify a commit ID when you add a repository, Domino will always pull the state of the repository specified by that commit in a detached HEAD state.
Detailed explanation-4: -Track Files. After making changes to existing files or adding new ones to the repository, add all files to the staging environment by running: Create Commit. Create a commit using the git commit command. Create Tag. Sync Changes with Remote. 30-Aug-2022