diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-branch1.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-branch1.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-branch1.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-branch1.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-branch2.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-branch2.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-branch2.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-branch2.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-commit.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-commit.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-commit.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-commit.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-pull.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-pull.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-pull.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-pull.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-pull_push.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-pull_push.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-pull_push.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-pull_push.png diff --git a/pages/04.Contribute/01.howto/01.git/de/atom-push.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom-push.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom-push.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom-push.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/atom1.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom1.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom1.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom1.png diff --git a/pages/04.Contribute/01.howto/01.git/de/atom_interface1.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/atom_interface1.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/atom_interface1.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/atom_interface1.png diff --git a/pages/04.Contribute/01.howto/01.git/de/git-merge_chaos.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/git-merge_chaos.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/git-merge_chaos.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/git-merge_chaos.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/git-merge_request.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/git-merge_request.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/git-merge_request.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/git-merge_request.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/git-request_access.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/git-request_access.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/git-request_access.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/git-request_access.png diff --git a/pages/04.Contribute/01.howto/01.git/de/howto-duplicate1.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/howto-duplicate1.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/howto-duplicate1.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/howto-duplicate1.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/howto-fork.gif b/pages/04.Contribute/01.howto/01.git/1.intro/de/howto-fork.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/howto-fork.gif rename to pages/04.Contribute/01.howto/01.git/1.intro/de/howto-fork.gif diff --git a/pages/04.Contribute/01.howto/01.git/de/note.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/note.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/note.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/note.png diff --git a/pages/04.Contribute/01.howto/01.git/de/publish.png b/pages/04.Contribute/01.howto/01.git/1.intro/de/publish.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/publish.png rename to pages/04.Contribute/01.howto/01.git/1.intro/de/publish.png diff --git a/pages/04.Contribute/01.howto/01.git/de/template.txt b/pages/04.Contribute/01.howto/01.git/1.intro/de/template.txt similarity index 100% rename from pages/04.Contribute/01.howto/01.git/de/template.txt rename to pages/04.Contribute/01.howto/01.git/1.intro/de/template.txt diff --git a/pages/04.Contribute/01.howto/01.git/docs.de.md b/pages/04.Contribute/01.howto/01.git/1.intro/docs.de.md similarity index 100% rename from pages/04.Contribute/01.howto/01.git/docs.de.md rename to pages/04.Contribute/01.howto/01.git/1.intro/docs.de.md diff --git a/pages/04.Contribute/01.howto/01.git/1.intro/docs.en.md b/pages/04.Contribute/01.howto/01.git/1.intro/docs.en.md new file mode 100755 index 00000000..6277e81b --- /dev/null +++ b/pages/04.Contribute/01.howto/01.git/1.intro/docs.en.md @@ -0,0 +1,69 @@ +--- +title: "Preparing the workspace: Git basics" +published: true +visible: true +updated: + last_modified: "October 2021" + app: Git + app_version: 2.33.0 +taxonomy: + category: + - docs + tags: + - contribute + - git +page-toc: + active: true +--- + +# Git basics +The aim of the following tutorials is to introduce you to the basics of **Git**, the main tool we use to manage the **Howto** project files. Therefore, we will not cover all the aspects of its usage, only some basic concepts and commands.
+If you get more interested about **Git**, there are lots of in-depth tutorials and documentation written about it that you can easily find on the internet. + +## What does Git do? + +![](en/git.png) + +When you read a **Disroot** tutorial, what you are seeing is the representation in your browser of a piece of code, in our case, a text file written in a formatting syntax called **Markdown**. The entire code of this site and its content is hosted in a **git repository**, a folder containing all the project files and the changes history of each and every one of those files (what has changed, who has changed it and why it has changed). + +In this repository (or repo) there is a **main branch** (or "master branch"), the default project folder where is the "final" code, the one is online. + +When a tutorial needs to be modified (e.g., some software has been updated, typos were found in a document, there is information to be added/removed, etc) what we do is copy the remote repository into our machine, this way we can work locally on the files. This procedure is called **cloning** and once it is done, all Git operations are managed from our local repository. + +Next step is to create a new **branch**, a fork of the main branch on which we can make modifications without compromising the original code. + +![](en/git_branches.png) + + +[//]: # (TODO) +## Setting your username and email +In order to be able to send your work from your machine to the remote repository, it is necessary to setup your **Gitea** username and email. +1. Open a terminal and start Git
+`git init`
+ +2. Type and complete with your information the following commands:
+`git config --global user.email user@email`
+`git config --global user.name "User Name"` + +## Cloning the **Howto Disroot** repository + +Git is designed with collaboration in it's core. So, first thing we need to do is get a copy of all files within the project onto our local hard drive. This process is called "*cloning a repository*". All modifications are done on our local machine (most of the work is made offline). Once we've decided that the changes (new tutorial, translation) are finished we can sent/sync them back to the repository on the server (*push*). + + +To clone the repository just open a terminal, navigate to the directory you would like to clone the repository to, and run `git clone ` command, where ** is basically the address of the repository you want to clone. In our case it would be: + +`git clone https://git.disroot.org/disroot/howto` + +Once the repository is copied to your hard drive you will see a `howto` directory that consists of all the files you could previously browse in your web browser when on our repository's url. + +You can later move that directory to any place you want on your computer. + +### Access to the repository +In order to be able to commit changes to **Disroot**'s git repository, you need to request access. This is done via [our git project page](https://git.disroot.org/disroot/howto) + +![](en/git-request_access.png) + +Once admins grant you the access, you can "*push*" your changes to the server. + +!! ![](/home.icons/note.png) +!! NOTE: You can start working without access granted as all the changes happen on your local computer. diff --git a/pages/04.Contribute/01.howto/01.git/docs.es.md b/pages/04.Contribute/01.howto/01.git/1.intro/docs.es.md similarity index 100% rename from pages/04.Contribute/01.howto/01.git/docs.es.md rename to pages/04.Contribute/01.howto/01.git/1.intro/docs.es.md diff --git a/pages/04.Contribute/01.howto/01.git/docs.fr.md b/pages/04.Contribute/01.howto/01.git/1.intro/docs.fr.md similarity index 100% rename from pages/04.Contribute/01.howto/01.git/docs.fr.md rename to pages/04.Contribute/01.howto/01.git/1.intro/docs.fr.md diff --git a/pages/04.Contribute/01.howto/01.git/docs.pt.md b/pages/04.Contribute/01.howto/01.git/1.intro/docs.pt.md similarity index 100% rename from pages/04.Contribute/01.howto/01.git/docs.pt.md rename to pages/04.Contribute/01.howto/01.git/1.intro/docs.pt.md diff --git a/pages/04.Contribute/01.howto/01.git/1.intro/en/git.png b/pages/04.Contribute/01.howto/01.git/1.intro/en/git.png new file mode 100644 index 00000000..3f35d2d7 Binary files /dev/null and b/pages/04.Contribute/01.howto/01.git/1.intro/en/git.png differ diff --git a/pages/04.Contribute/01.howto/01.git/1.intro/en/git_branches.png b/pages/04.Contribute/01.howto/01.git/1.intro/en/git_branches.png new file mode 100644 index 00000000..4bd20159 Binary files /dev/null and b/pages/04.Contribute/01.howto/01.git/1.intro/en/git_branches.png differ diff --git a/pages/04.Contribute/01.howto/01.git/docs.en.md b/pages/04.Contribute/01.howto/01.git/2.working/docs.en.md old mode 100755 new mode 100644 similarity index 67% rename from pages/04.Contribute/01.howto/01.git/docs.en.md rename to pages/04.Contribute/01.howto/01.git/2.working/docs.en.md index 0ac7b9d3..f4cd4efb --- a/pages/04.Contribute/01.howto/01.git/docs.en.md +++ b/pages/04.Contribute/01.howto/01.git/2.working/docs.en.md @@ -1,11 +1,11 @@ --- -title: How-to Contribute: Git Basics +title: "Working with Git" published: true -visible: false +visible: true updated: - last_modified: "22 August 2019" - app: Git and Atom - app_version: 1.40 + last_modified: "October 2021" + app: Git + app_version: 2.33.0 taxonomy: category: - docs @@ -16,45 +16,6 @@ page-toc: active: true --- -# Git Basics - -We'll not cover all the aspects of using git in this tutorial. There are lots of in-depth tutorials and books written about this tool and what we're aiming at is providing a short and easy way to contribute to tutorials and translations. - -# Before starting the work - -## Installing git -Since all the modifications will happen on your local machine, you need to [install git](https://gist.github.com/derhuerst/1b15ff4652a867391f03) to be able to send your changes as well as sync changes of others. Depending on your platform the ways to install git may vary so check the link above or refer to your platform specific documentation. - -## Installing Atom editor -If you haven't yet, it's time to install [Atom](https://atom.io). **Atom** is a feature rich text editor with special git integration. If your Operating system is not automatically detected or listed when going to [Atom](https://atom.io) website, check [Other platforms](https://github.com/atom/atom/releases/latest). For all Arch users, you can simply install it using `pacman -S atom` or other package manager of your choice. - -## Create an account on git instance -After installing **git** and **Atom**, you'll need an account on **Disroot** git instance. As of late we fortunately host our own **gitea** instance, but you'll have to register an account separately. Your **Disroot** account doesn't apply here. For a better assignment we suggest to use the same username as on **Disroot**. - -To create an account just go to [https://git.disroot.org](https://git.disroot.org) and register. - -## Preparing the workspace -Git is designed with collaboration in it's core. So, first thing we need to do is get a copy of all files within the project onto our local hard drive. This process is called "*cloning a repository*". All modifications are done on our local machine (most of the work is made offline). Once we've decided that the changes (new tutorial, translation) are finished we can sent/sync them back to the repository on the server (*push*). - -### Cloning the **Howto Disroot** repository -To clone the repository just open a terminal, navigate to the directory you would like to clone the repository to, and run `git clone ` command, where ** is basically the address of the repository you want to clone. In our case it would be: - -`git clone https://git.disroot.org/disroot/howto` - -Once the repository is copied to your hard drive you will see a `howto` directory that consists of all the files you could previously browse in your web browser when on our repository's url. - -You can later move that directory to any place you want on your computer. - -### Access to the repository -In order to be able to commit changes to **Disroot**'s git repository, you need to request access. This is done via [our git project page](https://git.disroot.org/disroot/howto) - -![](en/git-request_access.png) - -Once admins grant you the access, you can "*push*" your changes to the server. - -!! ![](/home.icons/note.png) -!! NOTE: You can start working without access granted as all the changes happen on your local computer. - # Starting to work Now you can start **Atom**. diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-branch1.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-branch1.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-branch1.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-branch1.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-branch2.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-branch2.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-branch2.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-branch2.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-commit.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-commit.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-commit.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-commit.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-pull.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-pull.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-pull.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-pull.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-pull_push.png b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-pull_push.png old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-pull_push.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-pull_push.png diff --git a/pages/04.Contribute/01.howto/01.git/en/atom-push.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/atom-push.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom-push.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom-push.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/atom1.png b/pages/04.Contribute/01.howto/01.git/2.working/en/atom1.png old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom1.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom1.png diff --git a/pages/04.Contribute/01.howto/01.git/en/atom_interface1.png b/pages/04.Contribute/01.howto/01.git/2.working/en/atom_interface1.png old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/atom_interface1.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/atom_interface1.png diff --git a/pages/04.Contribute/01.howto/01.git/en/git-merge_chaos.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/git-merge_chaos.gif similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/git-merge_chaos.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/git-merge_chaos.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/git-merge_request.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/git-merge_request.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/git-merge_request.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/git-merge_request.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/git-request_access.png b/pages/04.Contribute/01.howto/01.git/2.working/en/git-request_access.png old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/git-request_access.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/git-request_access.png diff --git a/pages/04.Contribute/01.howto/01.git/en/howto-duplicate1.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/howto-duplicate1.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/howto-duplicate1.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/howto-duplicate1.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/howto-fork.gif b/pages/04.Contribute/01.howto/01.git/2.working/en/howto-fork.gif old mode 100755 new mode 100644 similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/howto-fork.gif rename to pages/04.Contribute/01.howto/01.git/2.working/en/howto-fork.gif diff --git a/pages/04.Contribute/01.howto/01.git/en/note.png b/pages/04.Contribute/01.howto/01.git/2.working/en/note.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/note.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/note.png diff --git a/pages/04.Contribute/01.howto/01.git/en/publish.png b/pages/04.Contribute/01.howto/01.git/2.working/en/publish.png similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/publish.png rename to pages/04.Contribute/01.howto/01.git/2.working/en/publish.png diff --git a/pages/04.Contribute/01.howto/01.git/en/template.txt b/pages/04.Contribute/01.howto/01.git/2.working/en/template.txt similarity index 100% rename from pages/04.Contribute/01.howto/01.git/en/template.txt rename to pages/04.Contribute/01.howto/01.git/2.working/en/template.txt diff --git a/pages/04.Contribute/01.howto/docs.en.md b/pages/04.Contribute/01.howto/docs.en.md index 83a1dafa..26e4364d 100644 --- a/pages/04.Contribute/01.howto/docs.en.md +++ b/pages/04.Contribute/01.howto/docs.en.md @@ -46,7 +46,7 @@ Sounds pretty easy, doesn't it? Well, it really is. Of course, every step of the **Kate Editor**: [Download](https://kate-editor.org/) · [Source code](https://invent.kde.org/utilities/kate) | **Atom Text Editor**: [Download](https://atom.io/) · [Source code](https://github.com/atom/atom) -3. **A Disroot Gitea account**: In order to be able to submit your work, you will need to register an account on our **Gitea** instance (**Disroot** credentials will not work). +3. **A Disroot Gitea account**: In order to be able to submit your work, you will need to register an account on our **Gitea** instance (**Disroot** credentials will not work) and request access to our repository. [**Register a new account**](https://git.disroot.org/user/sign_up) on **Disroot's Gitea** instance. diff --git a/pages/04.Contribute/docsparent.en.md b/pages/04.Contribute/docsparent.en.md index d3fce423..50e1893f 100755 --- a/pages/04.Contribute/docsparent.en.md +++ b/pages/04.Contribute/docsparent.en.md @@ -16,9 +16,10 @@ page-toc: ![](contribute.jpg) -We think that knowledge is a collective construction: the result of working together and cooperatively, as a community. And whether the contributions take the form of a financial contribution, writing or translating a tutorial, or reporting bugs, they are all essentially personal time devoted to others. A bit like love. +We think that knowledge is a collective construction: the result of working together and cooperatively, as a community. And whether the contributions take the form of a donation, writing/translating a tutorial or reporting bugs, they are all essentially personal time devoted to others. A bit like love. So, for those of you who may want to contribute by donating your time and knowhow, we have tried to channel all the efforts through this section. + Here you'll find basic information and guidelines for different ways to contribute, from feedback to write a how-to or translate them to your language. ---