5 Git Concepts To Move Beyond The Beginner Developer
git cherry-pick, git stash, git hooks and more!
1. git cherry-pick
This is similar to picking the best cherries (i.e. commits) from a tree branch (i.e. a branch of your repository).
Check out the example below where we create a repository and add file1
to the master
branch.
> git init
> echo "lines in file1" >> file1
> git add .
> git commit -m "added file1 to master"
# Ashish cr…
Keep reading with a 7-day free trial
Subscribe to Into AI to keep reading this post and get 7 days of free access to the full post archives.