git clone https://github.com/JeffHoogland/MySoftware.git
git add mynewfile.txt
If you have simply updated (or deleted) existing files we simply pass the -u argument to the add argument:
git add -u git commit -m “Updated the README file” git push origin
git pull origin
git rm Datei
Ordner nur rekursiv:
git rm -r Ordner
Beispiel:
# Zuerst eine frische Kopie klonen mit dem --mirror-Flag git clone --mirror git://example.com/some-bad-repo.git Mit --mirror wird die volle Datenbank geklont, aber nicht die eigentlichen Dateien. cd some-bad-repo.git java -jar ../bfg --delete-files YOUR-FILE-WITH-SENSITIVE-DATA git reflog expire --expire=now --all && git gc --prune=now --aggressive git push
Branch hinzufügen:
git branch testing
In den Branch wechseln:
git checkout testing
Repo hinzufügen:
git remote add origin https://ho2e.de/mygit/UserName/Iptables_fahrrad.wiki.org
Repo entfernen:
git remote rm origin
git config --global credential.helper "cache --timeout=3600"