Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
To clone repository from another local repository (located at the parent dir)
git clone ../remote_repo.git .
by Valeri Tandilashvili
4 years ago
0
Git
Git Tutorials
1
Shows branches that are merged and not deleted yet
git branch --merged
by Valeri Tandilashvili
4 years ago
0
Git
Git Tutorials
1
by Valeri Tandilashvili
4 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
4 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
4 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
4 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
4 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
4 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
4 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
4 years ago
0
Git
Git Tutorials
1
Results: 1580