Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Git-Zenodo-Assistant
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
María José Ramos
Git-Zenodo-Assistant
Commits
1eaaa0d3
Commit
1eaaa0d3
authored
4 years ago
by
María José Ramos
Browse files
Options
Downloads
Patches
Plain Diff
Adding Pull info
parent
83a65441
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
git_assistant/git_tools/git_more.py
+24
-1
24 additions, 1 deletion
git_assistant/git_tools/git_more.py
with
24 additions
and
1 deletion
git_assistant/git_tools/git_more.py
+
24
−
1
View file @
1eaaa0d3
...
...
@@ -63,10 +63,20 @@ def git_review():
steps. You can learn more in the documentation and you should.
"""
message5
=
"""
While Git push allows you to publish local commits on a remote server, the
git pull command lets you update the local version with the new commits
saved on the remote server. It is the most common way to update a repository
and you should use it everytime that you interact with the remote server.
\n
Note that this tutorial does not include how to git pull although it is being
considered for future versions. If you need to git pull, we recommend to
consult the documentation available in the repository and the program.
"""
# Creating window
root
=
tk
.
Tk
()
root
.
title
(
"
Review of Git
"
)
root
.
geometry
(
"
250x2
5
0
"
)
root
.
geometry
(
"
250x2
8
0
"
)
root
.
config
(
background
=
"
#F5F5F5
"
)
root
.
eval
(
'
tk::PlaceWindow . center
'
)
label
=
tk
.
Label
(
root
,
text
=
"
Select an option and
\n
review some concepts
"
)
...
...
@@ -125,6 +135,16 @@ def git_review():
title
=
tk
.
Label
(
window_4
,
text
=
"
\n\n
Git push and the previous steps
"
,
bg
=
"
#F5F5F5
"
).
pack
()
text
=
tk
.
Label
(
window_4
,
text
=
message4
,
bg
=
"
#F5F5F5
"
,
anchor
=
"
e
"
,
justify
=
"
left
"
,
width
=
100
).
pack
()
return
def
open_window_5
():
window_5
=
tk
.
Toplevel
(
root
)
window_5
.
title
(
"
git pull
"
)
window_5
.
geometry
(
"
530x250
"
)
window_5
.
config
(
background
=
"
#F5F5F5
"
)
title
=
tk
.
Label
(
window_5
,
text
=
"
\n\n
What does a git pull do?
"
,
bg
=
"
#F5F5F5
"
).
pack
()
text
=
tk
.
Label
(
window_5
,
text
=
message5
,
bg
=
"
#F5F5F5
"
,
anchor
=
"
e
"
,
justify
=
"
left
"
,
width
=
100
).
pack
()
return
# Buttons that open windows and destroy the root window.
...
...
@@ -142,6 +162,9 @@ def git_review():
button_4
=
tk
.
Button
(
root
,
text
=
"
git add/git commit/git push
"
,
bg
=
"
#B0E0E6
"
,
command
=
open_window_4
)
button_4
.
pack
(
side
=
"
top
"
)
button_5
=
tk
.
Button
(
root
,
text
=
"
git pull
"
,
bg
=
"
#B0E0E6
"
,
command
=
open_window_5
)
button_5
.
pack
(
side
=
"
top
"
)
button_done
=
tk
.
Button
(
root
,
text
=
"
Done
"
,
bg
=
"
#FF6347
"
,
command
=
root
.
destroy
)
button_done
.
pack
(
side
=
"
bottom
"
)
...
...
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