.gitignore
- This project
-
clone the project
git clone https://github.com/<username>/<project>.git
-
check out to a new branch
git checkout -b <branch-name>
-
do some changes
👨💻 CODE 👩💻
-
check status
git status
-
add changes
git add <file-name> # --- OR --- git add .
-
commit the changes
git commit -m <meaningful-message>
-
push the chenges to the remote
git push origin <branch-name>
(there will be continue)
- Open a
PR
- Where are we going to write a
CR
? - Resolve comments on review and make a discussion.
- keep updated - on my branch
git checkout main git pull git checkout <branch-name> git merge main
- resolve some conflicts
# [looks like:] <<<<<< HEAD // Code from your branch ======= // Code from the other branch >>>>>> main
- Push your changes again: (see 4-6)
- merge
git merge <branch-name>