Skip to content

ColmanDevClubORG/git-hands-on

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIT HANDS ON

Short brief:

  1. .gitignore
  2. This project

important GIT commands:

  1. clone the project

    git clone https://github.com/<username>/<project>.git
  2. check out to a new branch

    git checkout -b <branch-name> 
  3. do some changes

    👨‍💻 CODE 👩‍💻
  4. check status

    git status
  5. add changes

    git add <file-name>
    # --- OR ---
    git add .
  6. commit the changes

    git commit -m <meaningful-message>
  7. push the chenges to the remote

    git push origin <branch-name>

(there will be continue)

important GITHUB actions:

  1. Open a PR
  2. Where are we going to write a CR?
  3. Resolve comments on review and make a discussion.

important GIT commands - continue:

  1. keep updated - on my branch
    git checkout main
    git pull 
    git checkout <branch-name>
    git merge main
  2. resolve some conflicts
    # [looks like:]
    
    <<<<<< HEAD
    // Code from your branch
    =======
    // Code from the other branch
    >>>>>> main
  3. Push your changes again: (see 4-6)
  4. merge
    git merge <branch-name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published