- Author
baiju.m.mail AT gmail.com
- Version
0.3.2
Note
brew install https://raw.github.com/cobrateam/formulae/master/swig.rb |
# first see the current origin | |
git remote -v | |
# now we delete the origin | |
git remote rm origin | |
# now we set the new origin | |
git remote add origin git@github.com:user/reponame.git | |
# optional: make git pull and push from someremote (on our case, origin) |
sudo pacman -S swig |
sudo apt-get install swig |
# force git/github to ignore a unwanted commit and use HEAD^ as HEAD of the repository | |
$ git push -f origin HEAD^:remote_branch | |
OR | |
$ git rebase -i HEAD~2 | |
$ git push origin +master | |
References: |
$ git push origin :remote_branch_name |
baiju.m.mail AT gmail.com
0.3.2
Note
Execute this command: | |
$ git push origin remote_branch_name:new_branch_name | |
Remember that you should edit the repository info to change to the new branch so you can delete the old one with this command: | |
$ git push origin :old_branch_name |
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |