Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Stashes changes with name
worked on add function
git stash save "worked on add function"
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Stashes changes without name
git stash
Stashes changes with name
worked on add function
git stash save "worked on add function"
Shows all the stashes with unique IDs
git stash list
Takes stashed changes back (does not delete the stash after applying)
git stash apply stash@{0}
Applies the most recent stash & deletes the stash
git stash pop
Drops the specified stash
git stash drop stash@{0}
Deletes all stashes
git stash clear
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
git checkout r48ikj2
can be used to recover deleted commits using the following commit (by default, the reflog expiration date is set to 90 days)
git reset --hard k829hkw
In this example
k829hkw
commit is followed by
r48ikj2
commit and by running the
checkout
command we want to get the deleted commit back
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Deletes all commits after the specified commit but does not change source code (keeps files unstaged)
git reset i4ol54f  /  git reset --mixed i4ol54f
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Deletes all commits after the specified commit but does not change source code (keeps files staged)
git reset --soft i4ol54f
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Creates a new commit based on the specified commit
git cherry-pick 720192c
Cherry picking in Git means to choose a commit from one branch and apply it onto another
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Shows list of files on each commit that were changed within the commit
git log --stat
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
The reflog is an ordered list of the commits that HEAD has pointed to: it's undo history for your repository
git reflog
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Makes changes to the last commit (also updates the commit hash)
git commit --amend -m 'the commit message'
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorials
1
Results: 1578