mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added git reset and pull commands.
This commit is contained in:
parent
a9ea93b872
commit
8c4541ae33
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:eacb6ecfdfc78ef076b1c9af4a4dcdb87d90648fff3903459c6ff20ed1df54e4"
|
||||
"signature": "sha256:2dac2a968d9e20f06438bc20ea8d86a270cf591b873e5dafe7658304d7e8411f"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
|
@ -156,7 +156,8 @@
|
|||
"\n",
|
||||
"# Add or remove from staging area\n",
|
||||
"git add [target]\n",
|
||||
"git reset [target]\n",
|
||||
"git reset [target file or commit]\n",
|
||||
"git reset --hard origin/master\n",
|
||||
"\n",
|
||||
"# Automatically stage tracked files, including deleting the previously tracked files\n",
|
||||
"git add -u\n",
|
||||
|
@ -207,6 +208,9 @@
|
|||
"git clone git@github.com:repo folder-name\n",
|
||||
"git clone https://donnemartin@bitbucket.org/donnemartin/tutorial.git\n",
|
||||
" \n",
|
||||
"# Update a local repository with changes from a remote repository\n",
|
||||
"git pull origin master\n",
|
||||
"\n",
|
||||
"# Create a file containing a patch\n",
|
||||
"# git format-patch are like normal patch files, but they also carry information \n",
|
||||
"# about the git commit that created the patch: the author, the date, and the \n",
|
||||
|
|
Loading…
Reference in New Issue
Block a user