This is collections about git commandes and github while you create your own repo!
- On Github, Creat a repo nammed
Your-repo-name
. - creat a file README.md.
- In markdown, give a title using the markedown language.
- By CMD or terminal type un git clone command to clone the repo to your pc.
- Creat a branch via git branch "nameBranch" commande.
- To go to the new branch use git`checkout branchName´ .
- Add somethings on your README.md file using markdown language.
- Do git
add .
to add all modifications that you have made. - Do git
commit .
to commit all modifications that you have made. - Do git
push origin branchName .
to push all modifications that you have made on your new branch. - On github invite your collaborators .
- Go to the repo that you have invited.
- By CMD or terminal type un git clone command to clone the repo to your pc.
- Do git
branch -a
to show all branchs. - Do git
pull branchName
to update the branch that you want - To go to the new branch use git`checkout branchName´ .
- From your new brach creat a second new branch
- Add some modifications on the second branch
- Do git
add .
to add all modifications that you have made. - Do git
commit .
to commit all modifications that you have made. - Do git
push origin branchName .
to push all modifications that you have made on your new branch. - Do git `merge secondBranch´ from the first oone.
- Do git
push origin firstOne
to push all modifications that you have made on your new branch. - Do git
tag tagName
from master branch.