Git usage :
A ) how to connect git :
1- create a folder and then initilize git ( git init )
2- and then git clone
how to add your code on repository :
1- before you add check your current updates on your code ( git status )
2- git add or "." (a dot) ---this command add the files on your repo
3- git commit -m 'message here' ----this command will allow you to write a comment
4- git push -u origin master --- this command will allow you to push everything on git repository
how to check current branch :
1) git checkout
2) if you want to change your branch git checkout <branch name>
--------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment