3 Star 3 Fork 1

Gitee 极速下载/Git-it

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/jlord/git-it
克隆/下载
help.txt 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
{cyan}{bold}
HELPFUL THINGS{/bold}{/cyan}
- Get stuck? Find an error? File and issue at:
{bold}github.com/jlord/git-it{/bold}
{cyan}
GIT COMMANDS
------------{/cyan}
{cyan}Configuration{/cyan}
{bold}Configure your name{/bold}
$ git config --global user.name "Your Name"
{bold}Configure your username{/bold}
$ git config --global user.username githubusername
{bold}Configure your email{/bold}
$ git config --global user.email youremail@example.com
{cyan}Check in{/cyan}
{bold}Check status of changes to a repository{/bold}
$ git status
{bold}View changes between commits{/bold}
$ git diff
{bold}Add a file's changes to be commited{/bold}
$ git add <FILENAME>
{bold}To add all files' changes{/bold}
$ git add .
{bold}To commit (aka save) the changes you've added with a short
message describing the changes{/bold}
$ git commit -m "your commit message"
{cyan}Remotes{/cyan}
{bold}To push your changes to a remote{/bold}
$ git push <REMOTENAME> <BRANCHNAME>
{bold}To pull in changes from remote{/bold}
$ git pull <REMOTENAME> <BRANCHNAME>
{bold}To set a URL for a remote{/bold}
$ git remote set-url <REMOTENAME> <URL>
{bold}Add a remote{/bold}
$ git remote add <REMOTENAME> <URL>
{cyan}Branches{/cyan}
{bold}Merge a branch into current branch{/bold}
$ git merge <BRANCHNAME>
{bold}Change the branch you're working on{/bold}
$ git checkout <BRANCHNAME>
{bold}Delete a local branch{/bold}
$ git branch -d <BRANCHNAME>
{bold}Delete a remote branch{/bold}
$ git push <REMOTENAME> --delete <BRANCHNAME>
{cyan}
BASH COMMANDS
-------------{/cyan}
{bold}Make a new folder (aka directory){/bold}
$ mkdir <FOLDERNAME>
{bold}Navigate into an existing folder (aka change directory){/bold}
$ cd <FOLDERNAME>
{bold}Back out of a folder/directory{/bold}
$ cd ..
{bold}Back out all the way to the home directory{/bold}
$ cd
{bold}List the items in a folder{/bold}
$ ls
{bold}Remove (delete) a file{/bold}
$ rm <FILENAME>
{bold}Remove (delete) a folder{/bold}
$ rm -rf <FOLDERNAME>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML/CSS
1
https://gitee.com/mirrors/Git-it.git
git@gitee.com:mirrors/Git-it.git
mirrors
Git-it
Git-it
master

搜索帮助

371d5123 14472233 46e8bd33 14472233