Вы находитесь на странице: 1из 1

Below are the common git commands that we need.

1. git init (creates git repo)


2. git status (list tout tracked and untracked files i.e status of the local rep
o)
3. git add (adds the file to staging area)
4. git status
5. git commit -m "Message" (Commits the files available in staging area)
6. git remote will show origin i.e. default name Git gives to the server you clo
ned from)
7. git push -u BRS master will push the changes from master branch to BRS repo u will sets this configuration as default so that next time git push will do sam
e thing.
8. git branch branch_name will create new branch
9. git checkout branch_name will change the branch to branch_name
10. git branch -d branch_name will delete the branch
11. git merge new_branch will merge the code from new branch with current branch
.
12. git remote -v will tell about remote repo to which local repo is pointing
13. git stash (removed the changes made on the local repo may be required before
git pull)
14. git pull will pull the latest code from remote repo.
15. git stash pop will write the stashed changes on top of pulled changes. (in c
ase of conflict need to merge the changes manually.)
Below commands are used to create new repo and to clone it to your machine.
1. ssh git.corp.flipkart.com "fk-git-create-repo sp/mp-treasury/BRS"
2. git clone git.corp.flipkart.com:/git/mp-treasury/brs.git
=============================
git push ajinkya.patil@172.20.208.129:/Users/ajinkya.patil/BRSRepo/BRS.git
import lombok.extern.slf4j.Slf4j;
@Slf4j
Invoice Sales Forward Total Amount After calculating CreditNote and DebitNote

Вам также может понравиться