关于检出操作 git clone url 检出一份到本地 git status 查看当前状态 关于提交操作 git commit . -m 提交代码到仓库(其实只是提交到本地仓库,仓库在本地) git push 推送代码到远端(这个时候才是真正的推送到远端的仓库中) 关于更新操作 git fetch orgin
关于检出操作
- git clone ‘url’ 检出一份到本地
- git status 查看当前状态
关于提交操作
- git commit . -m ” 提交代码到仓库(其实只是提交到本地仓库,仓库在本地)
- git push 推送代码到远端(这个时候才是真正的推送到远端的仓库中)
关于更新操作
- git fetch orgin master:temp 获取远端仓库修改到本地temp 区
- git diff temp 比对修改
- git merge temp 将修改merge到当前仓库
关于查看和切换分支
- git branch 查看当前所在分支
- git branch -a 查看所有分支包括本地和远端
- git checkout branchname 切换到分支
关于库的配置
- git config user.name ‘nic-name’
- git config user.email ‘name@mail.com’
原文地址:git 基本使用, 感谢原作者分享。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Assassin's Creed Shadows: Seashell Riddle Solution
2 weeks agoByDDD
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment