Git

Tell Git who you are

Configure the author name and email address to be used with your commits.

Note that Git strips some characters (for example Read More

Create a new local repository

Git Command git init Read More

GIT Status

List the files you've changed and those you still need to add or commit:

git status Read More

Add files in GIT

When you want Git to track a file in a repository, you must explicitly add it to the repo, which Read More

Git Commit

Commit changes to head (but not yet to the remote repository):

git commit -m "Commit message"

 

Commit any files you've added with git Read More

GIT - Connect to a remote repository

If you haven't connected your local repository to a remote server, add the server to be able to push to Read More

Git Push

Send changes to the master branch of your remote repository:

git push origin master Read More

GIT Branches

Create a new branch and switch to it:    

git checkout -b

Switch from one branch to another:    

git checkout

List all the Read More