Skip to content

Basic on working with git #11

@dungquoctrinh

Description

@dungquoctrinh

Check out a repository:(https://help.github.com/articles/fork-a-repo/)
git clone LINK_TO_THE_GIT_REPOSITORY
git remote add upstreamLINK_TO_THE_GIT_REPOSITORY

To swicth/checkout branch
git checkout -b origin NAME_OF_BRANCH
(we may have to setup the upstream: git branch --set-upstream-to=origin/NAME_OF_BRANCH

To Update the repository
git pull

To push code to repository
git add NAME_OF_FILE
or git add . (to add all file)

git commit -am "Message"
git push origin NAME_OF_BRANCH

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions