Skip to content

Instantly share code, notes, and snippets.

@newmen
Created November 9, 2025 19:54
Show Gist options
  • Select an option

  • Save newmen/350400393ca4ad26dd40a9262c4d536f to your computer and use it in GitHub Desktop.

Select an option

Save newmen/350400393ca4ad26dd40a9262c4d536f to your computer and use it in GitHub Desktop.
git pull/push
#!/bin/sh
git fetch
current=`git branch --show-current`
git pull origin $current
#!/bin/sh
current=`git branch --show-current`
git push origin $current $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment