diff options
Diffstat (limited to 'doc/gitlab_basics')
45 files changed, 0 insertions, 249 deletions
diff --git a/doc/gitlab_basics/README.md b/doc/gitlab_basics/README.md deleted file mode 100644 index a2edede5f1c..00000000000 --- a/doc/gitlab_basics/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# GitLab basics - -Step-by-step guides on the basics of working with Git and GitLab. - -* [Start using Git on the commandline](start_using_git.md) - -* [Create and add your SSH Keys](create_your_ssh_keys.md) - -* [Command Line basic commands](command_line_commands.md) - -* [Basic Git commands](basic_git_commands.md) diff --git a/doc/gitlab_basics/basic_git_commands.md b/doc/gitlab_basics/basic_git_commands.md deleted file mode 100644 index 895876c41d9..00000000000 --- a/doc/gitlab_basics/basic_git_commands.md +++ /dev/null @@ -1,111 +0,0 @@ -# Basic Git commands - -It's important to know some basic commands to work on your shell - -* Go into a project, directory or file to work in it -``` -cd NAME-OF-PROJECT-OR-FILE -``` - -* Go back one directory or file -``` -cd ../ -``` - -* Go to the master branch to pull the latest changes from there -``` -git checkout master -``` - -* Download the latest changes in the project, so that you work on an up-to-date copy (this is important to do every time you work on a project), while you setup tracking branches -``` -git pull REMOTE NAME-OF-BRANCH -u -``` -(REMOTE: origin) (NAME-OF-BRANCH: could be "master" or an existing branch) - -* Create a branch (remember that spaces won't be recognized, you need to use a hyphen or underscore) -``` -git checkout -b NAME-OF-BRANCH -``` - -* Work on a branch that has already been created -``` -git checkout NAME-OF-BRANCH -``` - -* To see what’s in the directory that you are in -``` -ls -``` - -* Create a directory -``` -mkdir NAME-OF-YOUR-DIRECTORY -``` - -* Create a README.md or file in directory -``` -touch README.md -nano README.md -#### ADD YOUR INFORMATION -#### Press: control + X -#### Type: Y -#### Press: enter -``` - -* To see the changes you've made (it's important to be aware of what's happening and what's the status of your changes) -``` -git status -``` - -* Add changes to commit (you'll be able to see your changes in red when you type "git status") -``` -git add CHANGES IN RED -git commit -m "DESCRIBE THE INTENTION OF THE COMMIT" -``` - -* Send changes to gitlab.com -``` -git push origin NAME-OF-BRANCH -``` - -* Remove a file -``` -rm NAME-OF-FILE -``` - -* Remove a directory and all of its contents -``` -rm -rf NAME-OF-DIRECTORY -``` - -* Throw away all changes in the Git repository, but leave unstaged things -``` -git checkout . -``` - -* Delete all changes in the Git repository, including untracked files -``` -git clean -f -``` - -* View history in terminal -``` -history -``` - -* Remove all the changes that you don't want to send to gitlab.com -``` -git add NAME-OF-FILE -all -``` - -* Merge created branch with master branch. You need to be in the created branch -``` -git checkout NAME-OF-BRANCH -git merge master -``` - -* Carry out commands for which the account you are using lacks authority. (You will be asked for an administrator’s password) -``` -sudo -``` diff --git a/doc/gitlab_basics/basicsimages/add_new_merge_request.png b/doc/gitlab_basics/basicsimages/add_new_merge_request.png Binary files differdeleted file mode 100644 index 9d93b217a59..00000000000 --- a/doc/gitlab_basics/basicsimages/add_new_merge_request.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/add_sshkey.png b/doc/gitlab_basics/basicsimages/add_sshkey.png Binary files differdeleted file mode 100644 index 2dede97aa40..00000000000 --- a/doc/gitlab_basics/basicsimages/add_sshkey.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/branch_info.png b/doc/gitlab_basics/basicsimages/branch_info.png Binary files differdeleted file mode 100644 index c5e38b552a5..00000000000 --- a/doc/gitlab_basics/basicsimages/branch_info.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/branch_name.png b/doc/gitlab_basics/basicsimages/branch_name.png Binary files differdeleted file mode 100644 index 06e77f5eea9..00000000000 --- a/doc/gitlab_basics/basicsimages/branch_name.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/branches.png b/doc/gitlab_basics/basicsimages/branches.png Binary files differdeleted file mode 100644 index c18fa83b968..00000000000 --- a/doc/gitlab_basics/basicsimages/branches.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/commit_changes.png b/doc/gitlab_basics/basicsimages/commit_changes.png Binary files differdeleted file mode 100644 index 81588336f37..00000000000 --- a/doc/gitlab_basics/basicsimages/commit_changes.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/commit_message.png b/doc/gitlab_basics/basicsimages/commit_message.png Binary files differdeleted file mode 100644 index 0df2c32653c..00000000000 --- a/doc/gitlab_basics/basicsimages/commit_message.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/commits.png b/doc/gitlab_basics/basicsimages/commits.png Binary files differdeleted file mode 100644 index 7e606539077..00000000000 --- a/doc/gitlab_basics/basicsimages/commits.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/compare_braches.png b/doc/gitlab_basics/basicsimages/compare_braches.png Binary files differdeleted file mode 100644 index 7eebaed9075..00000000000 --- a/doc/gitlab_basics/basicsimages/compare_braches.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/create_file.png b/doc/gitlab_basics/basicsimages/create_file.png Binary files differdeleted file mode 100644 index 688e355cca2..00000000000 --- a/doc/gitlab_basics/basicsimages/create_file.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/create_group.png b/doc/gitlab_basics/basicsimages/create_group.png Binary files differdeleted file mode 100644 index 57da898abdc..00000000000 --- a/doc/gitlab_basics/basicsimages/create_group.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/edit_file.png b/doc/gitlab_basics/basicsimages/edit_file.png Binary files differdeleted file mode 100644 index afa68760108..00000000000 --- a/doc/gitlab_basics/basicsimages/edit_file.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/file_located.png b/doc/gitlab_basics/basicsimages/file_located.png Binary files differdeleted file mode 100644 index 1def489d16b..00000000000 --- a/doc/gitlab_basics/basicsimages/file_located.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/file_name.png b/doc/gitlab_basics/basicsimages/file_name.png Binary files differdeleted file mode 100644 index 9ac2f1c355f..00000000000 --- a/doc/gitlab_basics/basicsimages/file_name.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/find_file.png b/doc/gitlab_basics/basicsimages/find_file.png Binary files differdeleted file mode 100644 index 98639149a39..00000000000 --- a/doc/gitlab_basics/basicsimages/find_file.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/find_group.png b/doc/gitlab_basics/basicsimages/find_group.png Binary files differdeleted file mode 100644 index 5ac33c7e953..00000000000 --- a/doc/gitlab_basics/basicsimages/find_group.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/fork.png b/doc/gitlab_basics/basicsimages/fork.png Binary files differdeleted file mode 100644 index b1f94938613..00000000000 --- a/doc/gitlab_basics/basicsimages/fork.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/group_info.png b/doc/gitlab_basics/basicsimages/group_info.png Binary files differdeleted file mode 100644 index e78d84e4d80..00000000000 --- a/doc/gitlab_basics/basicsimages/group_info.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/groups.png b/doc/gitlab_basics/basicsimages/groups.png Binary files differdeleted file mode 100644 index b8104343afa..00000000000 --- a/doc/gitlab_basics/basicsimages/groups.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/https.png b/doc/gitlab_basics/basicsimages/https.png Binary files differdeleted file mode 100644 index 2a31b4cf751..00000000000 --- a/doc/gitlab_basics/basicsimages/https.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/image_file.png b/doc/gitlab_basics/basicsimages/image_file.png Binary files differdeleted file mode 100644 index 1061d9c5082..00000000000 --- a/doc/gitlab_basics/basicsimages/image_file.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/issue_title.png b/doc/gitlab_basics/basicsimages/issue_title.png Binary files differdeleted file mode 100644 index 7b69c705392..00000000000 --- a/doc/gitlab_basics/basicsimages/issue_title.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/issues.png b/doc/gitlab_basics/basicsimages/issues.png Binary files differdeleted file mode 100644 index 9354d05319e..00000000000 --- a/doc/gitlab_basics/basicsimages/issues.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/key.png b/doc/gitlab_basics/basicsimages/key.png Binary files differdeleted file mode 100644 index 321805cda98..00000000000 --- a/doc/gitlab_basics/basicsimages/key.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/merge_requests.png b/doc/gitlab_basics/basicsimages/merge_requests.png Binary files differdeleted file mode 100644 index 7601d40de47..00000000000 --- a/doc/gitlab_basics/basicsimages/merge_requests.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/new_issue.png b/doc/gitlab_basics/basicsimages/new_issue.png Binary files differdeleted file mode 100644 index 94e7503dd8b..00000000000 --- a/doc/gitlab_basics/basicsimages/new_issue.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/new_merge_request.png b/doc/gitlab_basics/basicsimages/new_merge_request.png Binary files differdeleted file mode 100644 index 9120d2b1ab1..00000000000 --- a/doc/gitlab_basics/basicsimages/new_merge_request.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/new_project.png b/doc/gitlab_basics/basicsimages/new_project.png Binary files differdeleted file mode 100644 index ac255270a66..00000000000 --- a/doc/gitlab_basics/basicsimages/new_project.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/newbranch.png b/doc/gitlab_basics/basicsimages/newbranch.png Binary files differdeleted file mode 100644 index da1a6b604ea..00000000000 --- a/doc/gitlab_basics/basicsimages/newbranch.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/paste_sshkey.png b/doc/gitlab_basics/basicsimages/paste_sshkey.png Binary files differdeleted file mode 100644 index 9880ddfead1..00000000000 --- a/doc/gitlab_basics/basicsimages/paste_sshkey.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/profile_settings.png b/doc/gitlab_basics/basicsimages/profile_settings.png Binary files differdeleted file mode 100644 index 5f2e7a7e10c..00000000000 --- a/doc/gitlab_basics/basicsimages/profile_settings.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/project_info.png b/doc/gitlab_basics/basicsimages/project_info.png Binary files differdeleted file mode 100644 index 6c06ff351fa..00000000000 --- a/doc/gitlab_basics/basicsimages/project_info.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/public_file_link.png b/doc/gitlab_basics/basicsimages/public_file_link.png Binary files differdeleted file mode 100644 index 1a60a3d880a..00000000000 --- a/doc/gitlab_basics/basicsimages/public_file_link.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/select_branch.png b/doc/gitlab_basics/basicsimages/select_branch.png Binary files differdeleted file mode 100644 index 3475b2df576..00000000000 --- a/doc/gitlab_basics/basicsimages/select_branch.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/select_project.png b/doc/gitlab_basics/basicsimages/select_project.png Binary files differdeleted file mode 100644 index 6d5aa439124..00000000000 --- a/doc/gitlab_basics/basicsimages/select_project.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/settings.png b/doc/gitlab_basics/basicsimages/settings.png Binary files differdeleted file mode 100644 index 9bf9c5a0d39..00000000000 --- a/doc/gitlab_basics/basicsimages/settings.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/shh_keys.png b/doc/gitlab_basics/basicsimages/shh_keys.png Binary files differdeleted file mode 100644 index d7ef4dafe77..00000000000 --- a/doc/gitlab_basics/basicsimages/shh_keys.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/submit_new_issue.png b/doc/gitlab_basics/basicsimages/submit_new_issue.png Binary files differdeleted file mode 100644 index 18944417085..00000000000 --- a/doc/gitlab_basics/basicsimages/submit_new_issue.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/title_description_mr.png b/doc/gitlab_basics/basicsimages/title_description_mr.png Binary files differdeleted file mode 100644 index e08eb628414..00000000000 --- a/doc/gitlab_basics/basicsimages/title_description_mr.png +++ /dev/null diff --git a/doc/gitlab_basics/basicsimages/white_space.png b/doc/gitlab_basics/basicsimages/white_space.png Binary files differdeleted file mode 100644 index 6363a09360e..00000000000 --- a/doc/gitlab_basics/basicsimages/white_space.png +++ /dev/null diff --git a/doc/gitlab_basics/command_line_commands.md b/doc/gitlab_basics/command_line_commands.md deleted file mode 100644 index bad91795528..00000000000 --- a/doc/gitlab_basics/command_line_commands.md +++ /dev/null @@ -1,23 +0,0 @@ -# Command Line basic commands - -## Start working on your project - -* In Git, when you copy a project you say you "clone" it. To work on a git project locally (from your own computer), you will need to clone it. To do this, start by signing in at GitLab.com.. To do it, go to your [gitlab.com](https://gitlab.com) account - -* When you are on your Dashboard, click on the project that you'd like to clone, which you'll find at the right side of your screen - - - -* To work in the project, you can copy a link to the Git repository through a SSH or a HTTPS protocol. SSH is easier to use after it's been [set up](create_your_ssh_keys.md). When you're in the project, click on the HTTPS or SSH button at the right side of your screen. Then copy the link (you'll have to paste it on your shell in the next step) - - - -## On the command line - -* To clone your project, go to your computer's shell and type the following command - -``` -git clone PASTE HTTPS HERE -``` - -* A clone of the project will be created in your computer diff --git a/doc/gitlab_basics/create_your_ssh_keys.md b/doc/gitlab_basics/create_your_ssh_keys.md deleted file mode 100644 index 1e7f7c28513..00000000000 --- a/doc/gitlab_basics/create_your_ssh_keys.md +++ /dev/null @@ -1,37 +0,0 @@ -# How to create your SSH Keys - -You need to connect your computer to your GitLab account through SSH Keys. They are unique for every computer that you link your GitLab account with. - -## Generate your SSH Key - -* Create an account on GitLab. Sign up and check your email for your confirmation link - -* After you confirm, go to [gitlab.com](https://about.gitlab.com/) and sign in to your account - -## Add your SSH Key - -* At the top right corner, click on "profile settings" - - - -* On the left side menu click on "SSH Keys" - - - -* Then click on the green button "Add SSH Key" - - - -* There, you should paste the SSH Key that your commandline will generate for you. Below you'll find the steps to generate it - - - -## To generate an SSH Key on your commandline - -* Go to your [commandline](start_using_git.md) and follow the [instructions](https://gitlab.com/help/ssh/README) to generate it - -* Copy the SSH Key that your commandline created and paste it on the "Key" box on the GitLab page. The title will be added automatically - - - -* Now, you'll be able to use Git over SSH, instead of Git over HTTP. diff --git a/doc/gitlab_basics/start_using_git.md b/doc/gitlab_basics/start_using_git.md deleted file mode 100644 index f01a2f77eec..00000000000 --- a/doc/gitlab_basics/start_using_git.md +++ /dev/null @@ -1,67 +0,0 @@ -# Start using Git on the commandline - -If you want to start using a Git and GitLab, make sure that you have created an account on [gitlab.com](https://about.gitlab.com/) - -## Open a shell - -* Depending on your operating system, find the shell of your preference. Here are some suggestions - -- [Terminal](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line) on Mac OSX - -- [GitBash](https://msysgit.github.io) on Windows - -- [Linux Terminal](http://www.howtogeek.com/140679/beginner-geek-how-to-start-using-the-linux-terminal/) on Linux - -## Check if Git has already been installed - -* Git is usually preinstalled on Mac and Linux - -* Type the following command and then press enter - -``` -git --version -``` - -* You should receive a message that will tell you which Git version you have in your computer. If you don’t receive a "Git version" message, it means that you need to [download Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - -* If Git doesn't automatically download, there's an option on the website to [download manually](https://git-scm.com/downloads). Then follow the steps on the installation window - -* After you finished installing, open a new shell and type "git --version" again to verify that it was correctly installed - -## Add your Git username and set your email - -* It is important because every Git commit that you create will use this information - -* On your shell, type the following command to add your username - -``` -git config --global user.name ADD YOUR USERNAME -``` - -* Then verify that you have the correct username - -``` -git config --global user.name -``` - -* To set your email address, type the following command - -``` -git config --global user.email ADD YOUR EMAIL -``` - -* To verify that you entered your email correctly, type - -``` -git config --global user.email -``` - -* You'll need to do this only once because you are using the "--global" option. It tells Git to always use this information for anything you do on that system. If you want to override this with a different username or email address for specific projects, you can run the command without the "--global" option when you’re in that project - -## Check your information - -* To view the information that you entered, type - -``` -git config --global --list -``` |