Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GitAdvanced
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Corsi
Slides Corsi Git
GitAdvanced
Commits
ebfb0691
Commit
ebfb0691
authored
Mar 24, 2020
by
Paddy
🐧
Committed by
Luca Andrea Fusè
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added minor fixs
parent
7b0d0f94
Pipeline
#502
passed with stage
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
GitAdvanced.md
GitAdvanced.md
+18
-1
No files found.
GitAdvanced.md
View file @
ebfb0691
...
@@ -78,6 +78,10 @@ git submodule add [-b branch_name] repository submodule_directory
...
@@ -78,6 +78,10 @@ git submodule add [-b branch_name] repository submodule_directory
git submodule update
--init
--recursive
submodule_directory
git submodule update
--init
--recursive
submodule_directory
```
```
----
# Demo!
---
---
# Moving changes
# Moving changes
...
@@ -161,6 +165,10 @@ git stash list
...
@@ -161,6 +165,10 @@ git stash list
git stash pop stash@
{
n
}
git stash pop stash@
{
n
}
```
```
----
# Demo!
---
---
# How I share my changes?
# How I share my changes?
...
@@ -178,16 +186,25 @@ git stash pop stash@{n}
...
@@ -178,16 +186,25 @@ git stash pop stash@{n}
## Format Patch: What can it do?
## Format Patch: What can it do?
The command will create a file
with all the commits
that differ from the upstream repository.
<!-- .element: class="fragment" -->
The command will create a file
for each commit
that differ from the upstream repository.
<!-- .element: class="fragment" -->
----
----
## Format Patch: Syntax
## Format Patch: Syntax
#### Create a patch file
```
bash
```
bash
git format-patch
[
options]
[
branch_upstream]
git format-patch
[
options]
[
branch_upstream]
```
```
#### Import a patch
```
bash
cat
file.patch | git am
```
----
----
# Demo!
# Demo!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment