代码拉取完成,页面将自动刷新
{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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。