GIT Commands - logaegae/project_study GitHub Wiki

Commands

clear                                         Clear display window
git                                           Show commands
ls                                            Show file list
git init                                      Create a new local repository 

git add "file name"                           Add the file to staging(index)
git add *                                     Add all files to staging(index)
git status                                    List the files you've changed and those you 
                                              still need to add or commit

git commit -m"comment"                        Commit changes to head
                                              (but not yet to the remote repository)

git remote add origin https://~               If you haven't connected local repository
                                              to a remote server, add the server to 
                                              be able to push to it
git push -u origin master                     Send changes to the master branch of remote 
                                              repository

git config                                    Show configure commands  
git config --global --list                    Show contributor list
git config --global user.name "user name"     Configure the author name
git config --global user.email "address"      Configure the author email address


git config --global --unset user.name "name"  remove contributor