Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git set head to commit

# Set a new HEAD to a branch
# Note that commit can be a commit hash or tag or another branch
git reset --hard $COMMIT
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #set #head #commit
ADD COMMENT
Topic
Name
3+7 =