Git in terminal

Posted by goodcow on Stack Overflow See other posts from Stack Overflow or by goodcow
Published on 2013-11-13T15:43:36Z Indexed on 2013/11/13 15:53 UTC
Read the original article Hit count: 168

Filed under:
|
|

I tried making my first repo on github. I copy pasted their code while on the directory of my entire system (I think that was a mistake). As a result, the terminal line always says ~ git:(master) ? before every command. It does not go away even when I quit terminal. I am using zsh. The code I pasted was:

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/***/***.git
git push -u origin master

On top of that, I can't even seem to figure out how to add my files to the repo. Help on how to not always have git:(master) before every bash command and how to make a repo? Thanks!

© Stack Overflow or respective owner

Related posts about git

Related posts about github