|
1 2 3 4 5 6 7 8 |
# checkout the root commit git checkout <sha1-of-root> # amend the commit git commit --amend # rebase all the other commits in master onto the amended root git rebase --onto HEAD HEAD master |
|
1 2 3 4 5 6 7 8 |
# checkout the root commit git checkout <sha1-of-root> # amend the commit git commit --amend # rebase all the other commits in master onto the amended root git rebase --onto HEAD HEAD master |
Remove Local Branch:
Remove Remote Branch:
|
1 |
git symbolic-ref HEAD refs/heads/mybranch |
Diese Fehlermeldung bekommt man, wenn ein Bash Script das Windows Zeilenende hat, dies kann man einfach in der Console beheben:
|
1 |
sed 's/\r//' filename > filename.tmp && mv filename.tmp filename |