typo + ajout balises #+BEGIN_CENTER, #+END_CENTER manquantes

parent a007cab3
...@@ -200,7 +200,9 @@ Here are other ways to learn Git through the command line: ...@@ -200,7 +200,9 @@ Here are other ways to learn Git through the command line:
Now, let's start! Now, let's start!
1. Obtain the repository URL 1. Obtain the repository URL
#+BEGIN_CENTER
[[file:rstudio_images/adresse_depot.png]] [[file:rstudio_images/adresse_depot.png]]
#+END_CENTER
2. Cloning the repository 2. Cloning the repository
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
cd /the/directory/where/you/want/to/clone/your/repository cd /the/directory/where/you/want/to/clone/your/repository
...@@ -226,47 +228,57 @@ Now, let's start! ...@@ -226,47 +228,57 @@ Now, let's start!
GitLab. The =git status= will indicate you whether files are GitLab. The =git status= will indicate you whether files are
tracked/modified/committed/... tracked/modified/committed/...
Let's assume you just created a `fichier.txt` file on the top of Let's assume you just created a =fichier.txt= file on the top of
the =mooc-rr= directory. the =mooc-rr= directory.
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
git status git status
#+end_src #+end_src
#+BEGIN_CENTER
[[file:gitlab_images/status1.png]] [[file:gitlab_images/status1.png]]
#+END_CENTER
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
git add fichier.txt git add fichier.txt
git status git status
#+end_src #+end_src
#+BEGIN_CENTER
[[file:gitlab_images/status2.png]] [[file:gitlab_images/status2.png]]
#+END_CENTER
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
git commit -m "message commit" git commit -m "message commit"
#+end_src #+end_src
#+BEGIN_CENTER
[[file:gitlab_images/commit_git.png]] [[file:gitlab_images/commit_git.png]]
#+END_CENTER
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
git status git status
#+end_src #+end_src
#+BEGIN_CENTER
[[file:gitlab_images/status3.png]] [[file:gitlab_images/status3.png]]
#+END_CENTER
The file can then be transfered to GitLab: The file can then be transfered to GitLab:
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
git push git push
#+end_src #+end_src
At this point, git will as you about your login/password unless At this point, git will ask you about your login/password unless
you followed the previous /Remembering your password locally/ instructions. you followed the previous /Remembering your password locally/ instructions.
N.B.: you will not be allowed to propagate your modifications to N.B.: you will not be allowed to propagate your modifications to
GitLab if other modifications (e.g., from someone else) have been GitLab if other modifications (e.g., from someone else) have been
propagated in between propagated in between
#+BEGIN_CENTER
[[file:gitlab_images/rejected.png]] [[file:gitlab_images/rejected.png]]
#+END_CENTER
5. Synchronizing from Gitlab: to avoid the previous problem, you need 5. Synchronizing from Gitlab: to avoid the previous problem, you need
to fetch the remote GitLab modifications first and apply them to fetch the remote GitLab modifications first and apply them
locally. locally.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment