- Stage the files for commit (
git addthe files) - Write the tree (this only creates a tree object, returning the SHA of the new tree):
git write-tree- Optionally: examine the new tree:
git ls-tree [SHA]
- Optionally: examine the new tree:
- Create the commit:
git commit-tree [SHA] -p [PARENT-SHA] -m "Commit message"(add as many seperate-p [PARENT-SHA]as you want (makes it look like a merge))
The SHA of the new commit will be given to you on succes - Finally, merge the new commit into you branch
git merge [NEW-SHA]
Last active
June 19, 2021 07:58
-
-
Save BillyNate/32fee749856df3f74c4a97fb099d45a5 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment