github - Uploading file to git -
hello im bit new github , trying upload file git repository on github, , having trouble figuring out.
i have file named test.txt , have repository on github called fun-with-git trying put file test.txt repositories master in "cloud". im sure there simple task can't seem make work, if can walk me through terminal commands or way great. thank :)
p.s using macintosh (if makes difference).
clone git repository locally:
git clone git clone git@github.com:sirsoltex/fun-with-git.git cd fun-with-git
copy , add test.txt
file:
cp /path/to/test.txt . git add test.txt
create new local commit:
git commit -m 'look, first git commit!'
push commit remote github repository:
git push origin master
Comments
Post a Comment