Marcel Beck

Ich mag Züge…

Hauptmenü

Zum Inhalt wechseln
Zum sekundären Inhalt wechseln

Archiv der Kategorie: GIT

Git – Change message of first commit

Veröffentlicht am 20. April 2013 von Marcel Beck

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

Veröffentlicht unter GIT, Ported.

Git – Show last Commit

Veröffentlicht am 6. Februar 2013 von Marcel Beck
git log --format=oneline HEAD^..HEAD
Veröffentlicht unter GIT.

GIT – Check if remote exists

Veröffentlicht am 16. Dezember 2012 von Marcel Beck

Veröffentlicht unter GIT.

Git – Delete all local and remote tags

Veröffentlicht am 16. Dezember 2012 von Marcel Beck

Veröffentlicht unter GIT.

Git – Disable SSL Verify

Veröffentlicht am 20. Juli 2012 von Marcel Beck
git config --global http.sslVerify false
Veröffentlicht unter GIT.

Git Remove Remote Branch

Veröffentlicht am 14. Juni 2012 von Marcel Beck

Remove Local Branch:

git branch -d “branch name”

Remove Remote Branch:

git push origin :refs/heads/”branch name”
Veröffentlicht unter GIT.

GIT behind proxy

Veröffentlicht am 11. Juni 2012 von Marcel Beck
git config --global http.proxy http://username:pass...@proxy.server.com:port
Veröffentlicht unter GIT.

GIT – Lokale Änderungen vollständig verwerfen

Veröffentlicht am 10. Juni 2012 von Marcel Beck
git reset --hard
git clean -f -x -d
Veröffentlicht unter GIT.

GIT – Aktiven Branch in einem Bare Repository setzen

Veröffentlicht am 11. November 2011 von Marcel Beck

1
git symbolic-ref HEAD refs/heads/mybranch

Veröffentlicht unter GIT.

BASH – /bin/bash^M: bad interpreter: no such file or directory

Veröffentlicht am 13. September 2011 von Marcel Beck

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 &gt; filename.tmp &amp;&amp; mv filename.tmp filename

Veröffentlicht unter GIT.
  • 1
  • 2
  • Weiter »

Kategorien

Allgemein Apache Bash Bilder CentOS Daemon Delphi Gentoo GIT Haushalt IDE JavaScript jQUery Kohana LDAP Linux MSSQL MySQL nginx OpenELEC Oracle Oracle Linux PHP PHP-FPM PHPStorm Ported Programmieren Putzen RaspberryPI RHEL Spiele SQL Virtual Box Webserver Windows 7 XBMC

Meta

  • Registrieren
  • Anmelden
  • Beitrags-Feed (RSS)
  • Kommentare als RSS
  • WordPress.org
© 2013 Marcel Beck, alle Rechte vorbehalten.
Proudly powered by WordPress