Home > Programming / tutorials > New to Git : Adding your code to Git for first time

New to Git : Adding your code to Git for first time

If you are new to Git and are looking for very basic stuff to check in yoru code, I found this answer at stackoverflow.com very helpful

http://stackoverflow.com/questions/2866872/how-can-i-upload-fresh-code-at-github

cd "/your/repo/dir"
git clone https://github.com/user_AKA_you/repoName # (creates /your/repo/dir/repoName)
cp "/all/your/existing/code/*" "/your/repo/dir/repoName/"
git add -A
git commit -m "initial commit"
git push origin master

When I was not cloning , I faced some challenges

Categories: Programming / tutorials Tags:
  1. No comments yet.
  1. No trackbacks yet.