Last active
September 24, 2015 15:57
-
-
Save 01-Scripts/772736 to your computer and use it in GitHub Desktop.
Working with git and github, ssh, console & co.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abort a (conflicted) merge: | |
git merge --abort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console: | |
ssh-keygen -l -f server-public-key.txt | |
server-public-key.txt is placed in C:\Users\Username\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git-Bash: | |
git push REMOTENAME :BRANCHNAME | |
REMOTENAME in der Form [email protected]:772736.git | |
http://help.github.com/remotes/ | |
Since a recent version of TortoiseGIT it is possible to delete remote branches directly from the log view of TortoiseGIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You probably won't need to do this often (if ever at all) but just in case, here is how to delete a tag from a remote Git repository. | |
If you have a tag named '12345' then you would just do this: | |
git tag -d 12345 | |
git push origin :refs/tags/12345 | |
That will remove '12345' from the remote repository. | |
http://nathanhoad.net/how-to-delete-a-remote-git-tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Once the clone is complete your repo will have a remote named “origin” that points to your fork on github. Don’t let the name confuse you, this does not point to the original repo you forked from. To help you keep track of that repo we will add another remote named “upstream”: | |
$ git remote add upstream git://github.com/pjhyett/github-services.git | |
Or with tortoisegit: | |
-->Repository-Settings->Git->Remote->New | |
http://help.github.com/forking/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> Rechtsklick Arbeitsplatz bzw. Computer | |
-> Eigenschaften | |
-> Erweiterte Systemeinstellungen | |
-> Umgebungsvariablen | |
-> Der Variable Path den Pfad zu C:\Programme\...\Git\bin hinzufügen | |
Danach die Konsole neustarten und der git Befehl ist global verfügbar. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ als Zeichen eines Pfads mit vorangestelltem Backslash schützen:
cd $...