Skip to content

Instantly share code, notes, and snippets.

@s0kil
Last active January 28, 2021 04:12
Show Gist options
  • Save s0kil/cfd126b49e18a1bc01c40e92eb73dcde to your computer and use it in GitHub Desktop.
Save s0kil/cfd126b49e18a1bc01c40e92eb73dcde to your computer and use it in GitHub Desktop.
Shell Snippets

Shell Snippets

Check if Git Directories belong to user

for d in ./*/; do (cd "$d" && git config --get remote.origin.url); done | grep "user"

Applying the changes from branch b to a, without merging or adding commits

git merge --no-commit --squash branchA
git reset HEAD # to unstage the changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment