slivertwo / learninggit Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Git is a distributed version control system. Git is free software distributed under the GPL. git command git add <file> # add a file to commit git commit -m <"note"> # commit all file to git as a version,-m add a note to this version git status # show the workspace status git diff # compare the worspace between workspace of git. git log # view the log git log --pretty=oneline # show the log with a different view git reset --hard HEAD^ # 回退至上个版本 git reflog # 显示所有版本号 git reset --hard <指定版本号> # 回退至指定版本 git diff HEAD --<fileName> # 查看git中版本与工作区版本的不同 git checkout -- <fileName> # 丢弃工作区的修改 git reset HEAD <fileName> # 丢弃工作区的修改(已经add到暂缓区),再执行上句 git rm <fileName> #将删除的文件提交到暂缓区 ssh-keygen -t rsa -C "[email protected]" # 产生rsa密钥对(默认保存在user/.ssh目录下) git remote add origin [email protected]:<username>/<仓库名>.git # 关联github上的仓库 git push -u origin master # 第一次推送至远程仓库 git push origin master # 推送至远程仓库 git clone [email protected]:<用户名>/<仓库名>.git # 从github上clone仓库到本地 git checkout -b <分支名> # 创建一个分支并切换到这个分支 git branch <分支名> # 创建一个分支 git checkout <分支名> # 切换到指定分支 git branch # 查看所有分支 git branch # 查看所有分支 -d <分支名> 删除分支 git merge <分支名> 将分支合并到master上 git log --graph --pretty=oneline --abbrev-commit # 查看分支合并情况 --graph查看分支合并图
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.