Repository in bestehenden Ordner klonen/integrieren

Anstatt zu klonen

git clone URL

ist es eleganter folgenden Weg zu wählen

git init
git remote add origin $url_of_clone_source
git fetch origin
git checkout -b master --track origin/master # origin/master is clone's default branch
git reset origin/master # or to whatever commit you want to go reset to

Revision #1
Created 27 September 2021 22:07:17 by nielsperetzke
Updated 27 September 2021 22:08:19 by nielsperetzke