machine-learning-articles icon indicating copy to clipboard operation
machine-learning-articles copied to clipboard

Learning Git: 5 Shortcuts to Improve Your Coding Speed

Open khuyentran1401 opened this issue 4 years ago • 0 comments

TL;DR

Useful Git commands

Article Link

https://levelup.gitconnected.com/learning-git-shortcuts-1267fb689f4a

Author

Marco Antonio Ghiani

Key Takeaways

  • Make it easy to create edit committed files
  • Create a .zip of your repo

Useful Code Snippets

# Add files to a previous commit
git commit --amend --no-edit

// We have 3 files ==> file1, file2, file3
git add file1 file2
git commit -m "first 3 files"
// Doh!
git add file3
git commend
// Quickly solved!

commend = commit --amend --no-edit

Useful Tools

Comments/ Questions

khuyentran1401 avatar Apr 10 '20 22:04 khuyentran1401