git

Git Stash Commands

, , No Comment

Most common commands that I use. Self-explanatory. Save and List Stash git stash save “Some message” git stash list # stash is available to all branches. git stash show stash@{0} git stash show -p stash@{0}&hellip

Read Post →

.gitignore file

, , No Comment

Ignoring files in git using .gitignore ====================================== create a .gitignore file and put it in the root of a git project. Typically ignore: -Compiled source code -Packages and compressed files -logs and databases that changes&hellip

Read Post →

Changes to Git – Amend

, , No Comment

1. Undo changes in the working directory git checkout — unmodifiedFileName # — implies that we are not checking out a branch. Stay on the current branch and check out the unmodified file. 2. Undo&hellip

Read Post →

Most Common Git Commands

, , No Comment

git branch -b new_feature git branch –no-merged # show the branches that are not merged yet. git merge –no-ff new-feature -m “merge new-feature branch” git branch -D new-feature # delete the working branch after merge&hellip

Read Post →