Rajeev
Rajeev

Reputation: 46919

Adding new files and symlinks in github

I have the following files and symlinks in my directory. My question is how to add symlinks .Should i do the following.All the files and symlinks are new files which are yet to be committed for the first time

git add s1 s2 readme.txt

then do

git commit -m ""
git push origin master       

Following are the files I have

s1 -> readme.txt
s2 -> readme.txt

Upvotes: 0

Views: 74

Answers (1)

Anshul Goyal
Anshul Goyal

Reputation: 76887

Yes, the steps you have mentioned will work. (git add s1 s2 readme.txt && git commit -m "commit message" && git push origin master)

Note that if you are later on forking the repo to windows, symlinks won't work there.

PS: You will have to give some commit message, otherwise your current empty string commit message will get the following error

Aborting commit due to empty commit message.

Upvotes: 1

Related Questions