Skip to content

butterfly0510/Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Notes

Bash Scripting

Cheatsheets and Tutorials

Bash scripting cheatsheet

Useful Git Commands

Status and Logs

git ls-tree -r master --name-only

list all the files currently being tracked under the branch master

git log --graph
git log --graph --all
git log --graph --decorate --oneline
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s"

Draw a text-based graphical representation of the commit history on the left hand side of the output.

ref:

Branching and Commits

git checkout <branch_name> -- <paths>

update the working tree with files or directories from another branch, you can use the branch name pointer in the git checkout command (where -- is used as an end-of-options marker).

ref:

Change Commits History

git reset --soft [<commit>]

can be used to squashing multiple commits into one (will re-write the commit history).

git rebase <basebranch> <topicbranch>

checks out the topic branch for you and replays it onto the base branch

ref:

Linux Commands

Tmux

ref:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published