Reputation: 771
Completely new to Git. Just created a local repository in Windows using the command prompt (git pull/push origin master
) and successfully pushed it to my repository on github.com.
Can I now delete this folder locally without consequences? Or have I created a link between these two locations that shouldn´t be messed with?
Upvotes: 1
Views: 2318
Reputation: 707
You can delete your local repository safely.
it WILL NOT affect your remote repository.
If for some reason you need to make changes in the branch, you can simply pull it down again.
Upvotes: 1
Reputation: 1351
First you have to push everything in the online repo
. (If you want to be sure that the push has been succesfully, take a look.. just in case who knows)
git commit -m 'message' //You will have to do a commit (after adding files)
git push TestProject master //You cannot associate a message to the push
Then you can completely delete it, since it's safe online. And you can re-download again when it's wanted.
Upvotes: 3
Reputation: 3547
You can safely delete it like any other folder.
All local changes remain local until you do git push
Upvotes: 1