Jerry's WIKIJerry's WIKI
Overview
  • ๐Ÿž Web
  • ๐Ÿ“ Components
  • ๐Ÿ’ก Skills
  • ๐ŸŽฑ Specification
  • ๐Ÿ–ฅ Workflows
  • ๐Ÿ›  Tools
  • ๐ŸŒ๏ธ Linux
  • ๐Ÿ“ฆ Container
  • โ™จ๏ธ Language
Coffee
  • ็ฎ€ไฝ“ไธญๆ–‡
  • English
GitHub
Overview
  • ๐Ÿž Web
  • ๐Ÿ“ Components
  • ๐Ÿ’ก Skills
  • ๐ŸŽฑ Specification
  • ๐Ÿ–ฅ Workflows
  • ๐Ÿ›  Tools
  • ๐ŸŒ๏ธ Linux
  • ๐Ÿ“ฆ Container
  • โ™จ๏ธ Language
Coffee
  • ็ฎ€ไฝ“ไธญๆ–‡
  • English
GitHub
  • ๐Ÿšฉ Version Control (Git)

    • Key Configuration and Usage
    • Multi-platform and Multi-repository Key Management
    • Collaborative Development
    • Common Scenarios and Solutions
    • Others
  • โœ๏ธ Editor (Idea)

    • Shortcut Key Modification
    • VCS Operations
    • Others
  • ๐ŸŽ Debugging Tools

    • Stress Testing Tools
    • API Testing
    • Packet Sniffing Tools
  • ๐Ÿ”ญ Client

    • Navicat
    • Mredis
    • Docker Desktop
  • ๐ŸŽ Mac Tools

    • Brew
    • Iterm2
  • ๐ŸŒˆ Miscellaneous

    • List

VCS Operations

Index

  • Pull Code
  • Push Code
  • Merge Code
  • Compare Specific Files and Branches
  • cherry-pick Best Practices
  • View Commit History of a Specific File
  • Rollback Version

Pull Code

This operation does not merge unless there are local commits.
git -c core.quotepath=false -c log.showSignature=false fetch origin --recurse-submodules=no --progress --prune

Push Code

Commit and merge instructions

  • Click the commit button โœ… at the top right.
  • A dialog will appear on the left, select the files to commit and push.
  • Click "Commit and Push" on the right.
  • It is recommended to check the differences before pushing.

Merge Code

Example: Merging code from dev branch into master.

  • Switch to the master branch.
  • From the menu bar, select: git -> merge -> select the branch -> merge -> resolve conflicts -> apply -> push merge commit.

Images๏ผš

Compare Specific Files and Branches

Right-click -> git -> Compare with branch -> Select the branch

cherry-pick Best Practices

ใ€Tipใ€‘

  • cherry-pick simply means merging one or more commits from one branch into another.
  • For example, merge a few commits from main branch into dev branch.
  • Conflicts may arise during the merge, and the solution is the same as the merge code process outlined above.

ใ€Noteใ€‘

cherry-pick pitfalls


View Commit History of a Specific File

Right-click -> git -> Show history

Rollback Version

Select the corresponding branch, then select the commit to roll back to, and perform the rollback. Image:

Edit this page
Update At:
Contributor: ็”ฐๆœๅธ†
Prev
Shortcuts
Next
Others