Into AI

Into AI

Share this post

Into AI
Into AI
5 Git Concepts To Move Beyond The Beginner Developer
Copy link
Facebook
Email
Notes
More

5 Git Concepts To Move Beyond The Beginner Developer

git cherry-pick, git stash, git hooks and more!

Dr. Ashish Bamania's avatar
Dr. Ashish Bamania
Dec 09, 2023
∙ Paid
1

Share this post

Into AI
Into AI
5 Git Concepts To Move Beyond The Beginner Developer
Copy link
Facebook
Email
Notes
More
Share
Creating an even cuter version of the GitHub-themed wallpaper in a Wes Anderson-inspired style, with the text 'GitHub' prominently displayed. The design continues to exhibit the symmetrical, meticulously organized layout typical of Anderson's films, but now with an even more charming and adorable aesthetic. The color scheme is soft and playful, dominated by pastel reds, pinks, and corals, enhancing the cozy, endearing atmosphere. The GitHub logo, a stylized cat silhouette, is central, with 'GitHub' written below it in a cute, whimsical font. The background is enriched with delightful geometric patterns and playful elements, all in harmonious pastel shades, adding to the overall adorable and comforting appeal. This design merges the quirky, retro style of Wes Anderson with a delightful, tech-friendly theme, in a 2:1 aspect ratio suitable for wide screen displays.
Generated with DALL-E 3

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 creates a new branch : ashish_changes
> git checkout -b ashish_changes

# Ashish adds more lines to file1
> echo "lines to file1" >> file1

# Ashish commits the changes to 'ashish_changes' branch
> git commit -am "ashish's changes to file1"

> git checkout master

# John creates a new branch : john_changes
> git checkout -b john_changes

# John adds a new file
> echo "lines in file2" > file2

# John commits the changes to 'john_changes' branch
> git add file2
> git commit -m "file2 added"

# Repository's history 
> git log --oneline --all --decorate --graph

* c83a4c6 (HEAD -> john_changes) added file2
| * dffe39c (ashish_changes) ashish'…

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.

Already a paid subscriber? Sign in
© 2025 Dr. Ashish Bamania
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More