Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programming course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
Programming course
Commits
2812f3c0
Commit
2812f3c0
authored
11 years ago
by
Zuotian Tatum
Browse files
Options
Downloads
Patches
Plain Diff
update Outs for git notebook
parent
08ccd3e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
git.ipynb
+59
-57
59 additions, 57 deletions
git.ipynb
with
59 additions
and
57 deletions
git.ipynb
+
59
−
57
View file @
2812f3c0
...
...
@@ -263,7 +263,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number":
5
"prompt_number":
1
},
{
"cell_type": "markdown",
...
...
@@ -297,7 +297,7 @@
]
}
],
"prompt_number":
1
"prompt_number":
2
},
{
"cell_type": "code",
...
...
@@ -318,7 +318,7 @@
]
}
],
"prompt_number":
4
"prompt_number":
3
},
{
"cell_type": "code",
...
...
@@ -336,13 +336,13 @@
"stream": "stdout",
"text": [
"total 20\n",
"drwxr-xr-x 3 ztatum ztatum 4096 Aug 2 1
4
:2
9
.\n",
"drwxrwxrwt 13 root root 12288 Aug 2 1
4
:2
9
..\n",
"drwxr-xr-x 7 ztatum ztatum 4096 Aug 2 1
4
:2
9
.git\n"
"drwxr-xr-x 3 ztatum ztatum 4096 Aug 2 1
8
:2
7
.\n",
"drwxrwxrwt 13 root root 12288 Aug 2 1
8
:2
6
..\n",
"drwxr-xr-x 7 ztatum ztatum 4096 Aug 2 1
8
:2
7
.git\n"
]
}
],
"prompt_number":
2
"prompt_number":
4
},
{
"cell_type": "markdown",
...
...
@@ -410,7 +410,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number":
12
"prompt_number":
6
},
{
"cell_type": "code",
...
...
@@ -428,17 +428,18 @@
"stream": "stdout",
"text": [
"# On branch master\n",
"# Changes not staged for commit:\n",
"# (use \"git add <file>...\" to update what will be committed)\n",
"# (use \"git checkout -- <file>...\" to discard changes in working directory)\n",
"#\n",
"#
\tmodified: README
\n",
"#
Initial commit
\n",
"#\n",
"no changes added to commit (use \"git add\" and/or \"git commit -a\")\n"
"# Untracked files:\n",
"# (use \"git add <file>...\" to include in what will be committed)\n",
"#\n",
"#\tREADME\n",
"nothing added to commit but untracked files present (use \"git add\" to track)\n"
]
}
],
"prompt_number":
13
"prompt_number":
7
},
{
"cell_type": "markdown",
...
...
@@ -487,7 +488,7 @@
]
}
],
"prompt_number":
4
"prompt_number":
8
},
{
"cell_type": "markdown",
...
...
@@ -523,13 +524,13 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"[master (root-commit)
021a07d
] add README to repository\n",
"
0
file
s
changed\n",
"[master (root-commit)
bd4898f
] add README to repository\n",
"
1
file changed
, 1 insertion(+)
\n",
" create mode 100644 README\n"
]
}
],
"prompt_number":
6
"prompt_number":
9
},
{
"cell_type": "markdown",
...
...
@@ -606,7 +607,7 @@
]
}
],
"prompt_number":
7
"prompt_number":
10
},
{
"cell_type": "code",
...
...
@@ -627,14 +628,14 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"[master
b662f1a
] add more files to repo\n",
"[master
5c68824
] add more files to repo\n",
" 0 files changed\n",
" create mode 100644 file1.txt\n",
" create mode 100644 file2.txt\n"
]
}
],
"prompt_number":
8
"prompt_number":
11
},
{
"cell_type": "markdown",
...
...
@@ -666,12 +667,12 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"\u001b[33m
b662f1a
\u001b[m -\u001b[31m (HEAD, master)\u001b[m add more files to repo \u001b[32m(
3
seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
"\u001b[33m
021a07d
\u001b[m -\u001b[31m\u001b[m add README to repository \u001b[32m(
34
seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m"
"\u001b[33m
5c68824
\u001b[m -\u001b[31m (HEAD, master)\u001b[m add more files to repo \u001b[32m(
4
seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
"\u001b[33m
bd4898f
\u001b[m -\u001b[31m\u001b[m add README to repository \u001b[32m(
12
seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m"
]
}
],
"prompt_number":
9
"prompt_number":
12
},
{
"cell_type": "code",
...
...
@@ -692,18 +693,16 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"\u001b[33mb73d401\u001b[m -\u001b[31m (HEAD, master)\u001b[m Update README with interesting stuff. \u001b[32m(39 seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
"\n",
"\u001b[33mb662f1a\u001b[m -\u001b[31m\u001b[m add more files to repo \u001b[32m(59 minutes ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
"\u001b[33m5c68824\u001b[m -\u001b[31m (HEAD, master)\u001b[m add more files to repo \u001b[32m(6 seconds ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
" create mode 100644 file1.txt\n",
" create mode 100644 file2.txt\n",
"\n",
"\u001b[33m
021a07d
\u001b[m -\u001b[31m\u001b[m add README to repository \u001b[32m(
60 minute
s ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
"\u001b[33m
bd4898f
\u001b[m -\u001b[31m\u001b[m add README to repository \u001b[32m(
14 second
s ago) \u001b[1;34m<Z. Tatum>\u001b[m\n",
" create mode 100644 README\n"
]
}
],
"prompt_number":
20
"prompt_number":
13
},
{
"cell_type": "markdown",
...
...
@@ -731,7 +730,7 @@
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 1
7
"prompt_number": 1
4
},
{
"cell_type": "markdown",
...
...
@@ -756,17 +755,16 @@
"stream": "stdout",
"text": [
"diff --git a/README b/README\n",
"index
e69de29..6a08c61
100644\n",
"index
323f517..bf576e7
100644\n",
"--- a/README\n",
"+++ b/README\n",
"@@ -0,0 +1,3 @@\n",
"+This is a simple test repository\n",
"+This repo is getting interesting\n",
"@@ -1 +1,2 @@\n",
" This is a simple test repository\n",
"+This repo is getting interesting\n"
]
}
],
"prompt_number": 1
8
"prompt_number": 1
5
},
{
"cell_type": "markdown",
...
...
@@ -799,12 +797,12 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"[master
b73d40
1] Update README with interesting stuff.\n",
" 1 file changed,
3
insertion
s
(+)\n"
"[master
33a123
1] Update README with interesting stuff.\n",
" 1 file changed,
1
insertion(+)\n"
]
}
],
"prompt_number": 1
9
"prompt_number": 1
6
},
{
"cell_type": "markdown",
...
...
@@ -842,15 +840,11 @@
"# (use \"git reset HEAD <file>...\" to unstage)\n",
"#\n",
"#\trenamed: file1.txt -> file_boring.txt\n",
"#\n",
"# Untracked files:\n",
"# (use \"git add <file>...\" to include in what will be committed)\n",
"#\n",
"#\tfile.txt\n"
"#\n"
]
}
],
"prompt_number":
2
1
"prompt_number": 1
7
},
{
"cell_type": "markdown",
...
...
@@ -891,15 +885,11 @@
"#\n",
"#\tdeleted: file2.txt\n",
"#\trenamed: file1.txt -> file_boring.txt\n",
"#\n",
"# Untracked files:\n",
"# (use \"git add <file>...\" to include in what will be committed)\n",
"#\n",
"#\tfile.txt\n"
"#\n"
]
}
],
"prompt_number":
22
"prompt_number":
18
},
{
"cell_type": "code",
...
...
@@ -920,14 +910,14 @@
"output_type": "stream",
"stream": "stdout",
"text": [
"[master
8521731
] renaming and removing files\n",
"[master
1cf2126
] renaming and removing files\n",
" 1 file changed, 0 insertions(+), 0 deletions(-)\n",
" delete mode 100644 file2.txt\n",
" rename file1.txt => file_boring.txt (100%)\n"
]
}
],
"prompt_number":
23
"prompt_number":
19
},
{
"cell_type": "markdown",
...
...
@@ -1049,8 +1039,7 @@
"input": [
"%%sh\n",
"\n",
"git remote add origin https://git.lumc.nl/z.tatum/myproject\n",
"git push -u origin master"
"git remote add origin git@git.lumc.nl:z.tatum/myproject.git"
],
"language": "python",
"metadata": {
...
...
@@ -1058,6 +1047,19 @@
"slide_type": "-"
}
},
"outputs": [],
"prompt_number": 26
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%%sh \n",
"\n",
"git push -u origin master"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
...
...
@@ -1070,12 +1072,12 @@
"output_type": "stream",
"stream": "stderr",
"text": [
"
fatal: remote origin already exists.
\n",
"
Everything up-to-da
te\n"
"
To git@git.lumc.nl:z.tatum/myproject.git
\n",
"
* [new branch] master -> mas
te
r
\n"
]
}
],
"prompt_number": 2
4
"prompt_number": 2
7
},
{
"cell_type": "markdown",
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment