Skip to content

Instantly share code, notes, and snippets.

@achmadns
Last active November 17, 2015 04:13
Show Gist options
  • Save achmadns/bdf71b18d52ed41cb0a8 to your computer and use it in GitHub Desktop.
Save achmadns/bdf71b18d52ed41cb0a8 to your computer and use it in GitHub Desktop.
Git related command
# push current branch into origin
git push origin `git status | grep branch | awk '{print $3}'`
# add all modified files
git status | grep modified | sed -re 's:^(.+\:)(.+):\2:' | xargs git add && git status
# list all project under specific group and grep the ssh url
curl --insecure -s "https://gitlab.com/api/v3/groups/oss?private_token=$GIT_TOKEN" | jq '.projects[].ssh_url_to_repo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment