https://github.com/kt3k/git-push-simple
git push with push.default == simple
https://github.com/kt3k/git-push-simple
git shell
Last synced: about 2 months ago
JSON representation
git push with push.default == simple
- Host: GitHub
- URL: https://github.com/kt3k/git-push-simple
- Owner: kt3k
- Created: 2014-03-09T12:51:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T05:43:25.000Z (over 6 years ago)
- Last Synced: 2025-02-06T07:45:37.166Z (over 1 year ago)
- Topics: git, shell
- Language: Shell
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-push-simple
> `git push` with push.default == simple
One purpose of this command is to prevent [this kind of incident](https://news.ycombinator.com/item?id=6713742).
## Usage
Put the script `git-push-simple` anywhere in your $PATH.
Then:
```
$ git push-simple
```
This performs the command like `git push origin HEAD` if the upstream's branch name is the same as the current branch. This behaviour is the same as `git push` without parameter with `push.default` set to `simple`. (This configuration will be default in Git 2.0).
## :cd: Install
```sh
# Downdloads script
curl https://raw.githubusercontent.com/kt3k/git-push-simple/master/git-push-simple -o git-push-simple
# Make it executable
chmod 755 git-push-simple
# Move it somewhere in $PATH
sudo mv git-push-simple /usr/local/bin/
```
## License
MIT