Last active
November 17, 2015 04:13
-
-
Save achmadns/bdf71b18d52ed41cb0a8 to your computer and use it in GitHub Desktop.
Git related command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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