- GIT CONFIG
GIT CONFIG -GLOBAL USER.NAME "[NAME]"
GIT CONFIG -GLOBAL USER.EMAIL "[EMAIL ADDRESS]"
This is used for to sets the author name and email address respectively to be used with your commits.
- GIT INIT
GIT INIT [REPOSITORY NAME]
This command is used to start a new repository.
- GIT COMMIT
GIT COMMIT -M "[TYPE IN COMMIT MESSAGE]"
This is used to records or snapshots the file permanently in the version history.
GIT ADD
GIT ADD [FILE]
This is used to adds a file to the staging area.
GIT ADD*
This is used to adds one or more to the staging area.
GIT CLONE
GIT CLONE [URL]
This is used to obtain a repository from an existing url.
- GIT BRANCH
GIT BRANCH
This is used to lists all the local branches in the current repository.
GIT BRANCH [BRANCH NAME]
This is used to creates a new branch.
GIT BRANCH -D [BRANCH NAME]
This is used to deletes the feature branch.
- GIT MERGE
GIT MERGE [BRANCH NAME]
This is used to merges the specified branche's history into current branch.
- GIT PULL
GIT PULL [REPOSITORY LINK]
This is used to eftches and merges changes on the remote server to your working directory.
- GIT PUSH
GIT PUSH -ALL [VARIABLE NAME]
This is used to pushes all branches to your remote repository.
- GIT RESET
GIT RESET [FILE]
This is used to unstages the file, but it preserves the file contents.
GIT RESET [COMMIT]
This is used to undoes all the commits after the specified commit and preserves the changes locally.
Thank you.