creates a new Git repository on local machine
add all file to staging area of local machine
add changes to local repository
Ex - git remote add origin https://github.com/rohit-ghadge/Selenium.git
connect to remote origin (needed when you are connecting for first time)
sends all the pending changes to the remote repository.
Username and password asked for authentication
Username - github username
Password - token
steps to generate token -
go to Setting- Developer Setting - Personal Access Token
get the changes from the remote and merge them into your local machine
as above, but try to redo your commits on top of the remote changes
create new branch
To display the current branch you're on, without the other branches
listed, you can do the following:
This is obvious to go into that branch.
If your local changes are bad then just remove them or reset your local
master to the state on remote
Git log is a utility tool to review and read a history of everything
that happens to a repository
The git status command displays the state of the working directory and
the staging area.
Hello I am Rohit Ghadge