From 60bee2843084bdee0521e348736f2bd3e118d554 Mon Sep 17 00:00:00 2001 From: karen Carias Date: Tue, 16 Jun 2015 16:05:56 -0700 Subject: added starting a shell doc and index --- doc/gitlab_basics/README.md | 6 ++++ doc/gitlab_basics/starting_a_shell.md | 67 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 doc/gitlab_basics/README.md create mode 100644 doc/gitlab_basics/starting_a_shell.md diff --git a/doc/gitlab_basics/README.md b/doc/gitlab_basics/README.md new file mode 100644 index 00000000000..15fc8b83dbf --- /dev/null +++ b/doc/gitlab_basics/README.md @@ -0,0 +1,6 @@ +# GitLab basics + +Step-by-step guides on the basics of working with Git and GitLab. + +* [Starting a shell in your computer](starting_a_shell.md) + diff --git a/doc/gitlab_basics/starting_a_shell.md b/doc/gitlab_basics/starting_a_shell.md new file mode 100644 index 00000000000..c93b18d53d3 --- /dev/null +++ b/doc/gitlab_basics/starting_a_shell.md @@ -0,0 +1,67 @@ +# Starting a shell in your computer + +If you want to start using a shell and GitLab, make sure that you have created an account on [gitlab.com](https://about.gitlab.com/) + +## Open a shell in your computer + +* Depending on your operating system, find the shell of your preference in your computer. 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 in your computer + +* 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 +``` + +* And you should get your username + +* 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 +``` -- cgit v1.2.1 From 2634d3ad7a8e73745c52d3bc8c8bc6301bbfc2a7 Mon Sep 17 00:00:00 2001 From: karen Carias Date: Tue, 16 Jun 2015 17:44:21 -0700 Subject: added images and fixed starting a shell doc --- .../basicsimages/add_new_merge_request.png | Bin 0 -> 9467 bytes doc/gitlab_basics/basicsimages/add_sshkey.png | Bin 0 -> 1463 bytes doc/gitlab_basics/basicsimages/branch_info.png | Bin 0 -> 7978 bytes doc/gitlab_basics/basicsimages/branch_name.png | Bin 0 -> 2199 bytes doc/gitlab_basics/basicsimages/branches.png | Bin 0 -> 3653 bytes doc/gitlab_basics/basicsimages/commit_changes.png | Bin 0 -> 5567 bytes doc/gitlab_basics/basicsimages/commit_message.png | Bin 0 -> 5707 bytes doc/gitlab_basics/basicsimages/commits.png | Bin 0 -> 4258 bytes doc/gitlab_basics/basicsimages/compare_braches.png | Bin 0 -> 1624 bytes doc/gitlab_basics/basicsimages/create_file.png | Bin 0 -> 2524 bytes doc/gitlab_basics/basicsimages/create_group.png | Bin 0 -> 3224 bytes doc/gitlab_basics/basicsimages/edit_file.png | Bin 0 -> 2259 bytes doc/gitlab_basics/basicsimages/file_located.png | Bin 0 -> 3156 bytes doc/gitlab_basics/basicsimages/file_name.png | Bin 0 -> 2544 bytes doc/gitlab_basics/basicsimages/find_file.png | Bin 0 -> 8840 bytes doc/gitlab_basics/basicsimages/find_group.png | Bin 0 -> 6159 bytes doc/gitlab_basics/basicsimages/fork.png | Bin 0 -> 1046 bytes doc/gitlab_basics/basicsimages/group_info.png | Bin 0 -> 16217 bytes doc/gitlab_basics/basicsimages/groups.png | Bin 0 -> 4857 bytes doc/gitlab_basics/basicsimages/https.png | Bin 0 -> 2887 bytes doc/gitlab_basics/basicsimages/image_file.png | Bin 0 -> 2939 bytes doc/gitlab_basics/basicsimages/issue_title.png | Bin 0 -> 9059 bytes doc/gitlab_basics/basicsimages/issues.png | Bin 0 -> 4332 bytes doc/gitlab_basics/basicsimages/key.png | Bin 0 -> 1264 bytes doc/gitlab_basics/basicsimages/merge_requests.png | Bin 0 -> 4381 bytes doc/gitlab_basics/basicsimages/new_issue.png | Bin 0 -> 2974 bytes doc/gitlab_basics/basicsimages/new_merge_request.png | Bin 0 -> 3227 bytes doc/gitlab_basics/basicsimages/new_project.png | Bin 0 -> 2319 bytes doc/gitlab_basics/basicsimages/newbranch.png | Bin 0 -> 1314 bytes doc/gitlab_basics/basicsimages/paste_sshkey.png | Bin 0 -> 8620 bytes doc/gitlab_basics/basicsimages/profile_settings.png | Bin 0 -> 1194 bytes doc/gitlab_basics/basicsimages/project_info.png | Bin 0 -> 21862 bytes doc/gitlab_basics/basicsimages/public_file_link.png | Bin 0 -> 3038 bytes doc/gitlab_basics/basicsimages/select_branch.png | Bin 0 -> 12213 bytes doc/gitlab_basics/basicsimages/select_project.png | Bin 0 -> 16832 bytes doc/gitlab_basics/basicsimages/settings.png | Bin 0 -> 4321 bytes doc/gitlab_basics/basicsimages/shh_keys.png | Bin 0 -> 4981 bytes doc/gitlab_basics/basicsimages/submit_new_issue.png | Bin 0 -> 9083 bytes doc/gitlab_basics/basicsimages/title_description_mr.png | Bin 0 -> 12749 bytes doc/gitlab_basics/basicsimages/white_space.png | Bin 0 -> 3707 bytes doc/gitlab_basics/starting_a_shell.md | 16 ++++++++-------- 41 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 doc/gitlab_basics/basicsimages/add_new_merge_request.png create mode 100644 doc/gitlab_basics/basicsimages/add_sshkey.png create mode 100644 doc/gitlab_basics/basicsimages/branch_info.png create mode 100644 doc/gitlab_basics/basicsimages/branch_name.png create mode 100644 doc/gitlab_basics/basicsimages/branches.png create mode 100644 doc/gitlab_basics/basicsimages/commit_changes.png create mode 100644 doc/gitlab_basics/basicsimages/commit_message.png create mode 100644 doc/gitlab_basics/basicsimages/commits.png create mode 100644 doc/gitlab_basics/basicsimages/compare_braches.png create mode 100644 doc/gitlab_basics/basicsimages/create_file.png create mode 100644 doc/gitlab_basics/basicsimages/create_group.png create mode 100644 doc/gitlab_basics/basicsimages/edit_file.png create mode 100644 doc/gitlab_basics/basicsimages/file_located.png create mode 100644 doc/gitlab_basics/basicsimages/file_name.png create mode 100644 doc/gitlab_basics/basicsimages/find_file.png create mode 100644 doc/gitlab_basics/basicsimages/find_group.png create mode 100644 doc/gitlab_basics/basicsimages/fork.png create mode 100644 doc/gitlab_basics/basicsimages/group_info.png create mode 100644 doc/gitlab_basics/basicsimages/groups.png create mode 100644 doc/gitlab_basics/basicsimages/https.png create mode 100644 doc/gitlab_basics/basicsimages/image_file.png create mode 100644 doc/gitlab_basics/basicsimages/issue_title.png create mode 100644 doc/gitlab_basics/basicsimages/issues.png create mode 100644 doc/gitlab_basics/basicsimages/key.png create mode 100644 doc/gitlab_basics/basicsimages/merge_requests.png create mode 100644 doc/gitlab_basics/basicsimages/new_issue.png create mode 100644 doc/gitlab_basics/basicsimages/new_merge_request.png create mode 100644 doc/gitlab_basics/basicsimages/new_project.png create mode 100644 doc/gitlab_basics/basicsimages/newbranch.png create mode 100644 doc/gitlab_basics/basicsimages/paste_sshkey.png create mode 100644 doc/gitlab_basics/basicsimages/profile_settings.png create mode 100644 doc/gitlab_basics/basicsimages/project_info.png create mode 100644 doc/gitlab_basics/basicsimages/public_file_link.png create mode 100644 doc/gitlab_basics/basicsimages/select_branch.png create mode 100644 doc/gitlab_basics/basicsimages/select_project.png create mode 100644 doc/gitlab_basics/basicsimages/settings.png create mode 100644 doc/gitlab_basics/basicsimages/shh_keys.png create mode 100644 doc/gitlab_basics/basicsimages/submit_new_issue.png create mode 100644 doc/gitlab_basics/basicsimages/title_description_mr.png create mode 100644 doc/gitlab_basics/basicsimages/white_space.png diff --git a/doc/gitlab_basics/basicsimages/add_new_merge_request.png b/doc/gitlab_basics/basicsimages/add_new_merge_request.png new file mode 100644 index 00000000000..9d93b217a59 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/add_new_merge_request.png differ diff --git a/doc/gitlab_basics/basicsimages/add_sshkey.png b/doc/gitlab_basics/basicsimages/add_sshkey.png new file mode 100644 index 00000000000..2dede97aa40 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/add_sshkey.png differ diff --git a/doc/gitlab_basics/basicsimages/branch_info.png b/doc/gitlab_basics/basicsimages/branch_info.png new file mode 100644 index 00000000000..c5e38b552a5 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/branch_info.png differ diff --git a/doc/gitlab_basics/basicsimages/branch_name.png b/doc/gitlab_basics/basicsimages/branch_name.png new file mode 100644 index 00000000000..06e77f5eea9 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/branch_name.png differ diff --git a/doc/gitlab_basics/basicsimages/branches.png b/doc/gitlab_basics/basicsimages/branches.png new file mode 100644 index 00000000000..c18fa83b968 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/branches.png differ diff --git a/doc/gitlab_basics/basicsimages/commit_changes.png b/doc/gitlab_basics/basicsimages/commit_changes.png new file mode 100644 index 00000000000..81588336f37 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/commit_changes.png differ diff --git a/doc/gitlab_basics/basicsimages/commit_message.png b/doc/gitlab_basics/basicsimages/commit_message.png new file mode 100644 index 00000000000..0df2c32653c Binary files /dev/null and b/doc/gitlab_basics/basicsimages/commit_message.png differ diff --git a/doc/gitlab_basics/basicsimages/commits.png b/doc/gitlab_basics/basicsimages/commits.png new file mode 100644 index 00000000000..7e606539077 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/commits.png differ diff --git a/doc/gitlab_basics/basicsimages/compare_braches.png b/doc/gitlab_basics/basicsimages/compare_braches.png new file mode 100644 index 00000000000..7eebaed9075 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/compare_braches.png differ diff --git a/doc/gitlab_basics/basicsimages/create_file.png b/doc/gitlab_basics/basicsimages/create_file.png new file mode 100644 index 00000000000..688e355cca2 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/create_file.png differ diff --git a/doc/gitlab_basics/basicsimages/create_group.png b/doc/gitlab_basics/basicsimages/create_group.png new file mode 100644 index 00000000000..57da898abdc Binary files /dev/null and b/doc/gitlab_basics/basicsimages/create_group.png differ diff --git a/doc/gitlab_basics/basicsimages/edit_file.png b/doc/gitlab_basics/basicsimages/edit_file.png new file mode 100644 index 00000000000..afa68760108 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/edit_file.png differ diff --git a/doc/gitlab_basics/basicsimages/file_located.png b/doc/gitlab_basics/basicsimages/file_located.png new file mode 100644 index 00000000000..1def489d16b Binary files /dev/null and b/doc/gitlab_basics/basicsimages/file_located.png differ diff --git a/doc/gitlab_basics/basicsimages/file_name.png b/doc/gitlab_basics/basicsimages/file_name.png new file mode 100644 index 00000000000..9ac2f1c355f Binary files /dev/null and b/doc/gitlab_basics/basicsimages/file_name.png differ diff --git a/doc/gitlab_basics/basicsimages/find_file.png b/doc/gitlab_basics/basicsimages/find_file.png new file mode 100644 index 00000000000..98639149a39 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/find_file.png differ diff --git a/doc/gitlab_basics/basicsimages/find_group.png b/doc/gitlab_basics/basicsimages/find_group.png new file mode 100644 index 00000000000..5ac33c7e953 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/find_group.png differ diff --git a/doc/gitlab_basics/basicsimages/fork.png b/doc/gitlab_basics/basicsimages/fork.png new file mode 100644 index 00000000000..b1f94938613 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/fork.png differ diff --git a/doc/gitlab_basics/basicsimages/group_info.png b/doc/gitlab_basics/basicsimages/group_info.png new file mode 100644 index 00000000000..e78d84e4d80 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/group_info.png differ diff --git a/doc/gitlab_basics/basicsimages/groups.png b/doc/gitlab_basics/basicsimages/groups.png new file mode 100644 index 00000000000..b8104343afa Binary files /dev/null and b/doc/gitlab_basics/basicsimages/groups.png differ diff --git a/doc/gitlab_basics/basicsimages/https.png b/doc/gitlab_basics/basicsimages/https.png new file mode 100644 index 00000000000..2a31b4cf751 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/https.png differ diff --git a/doc/gitlab_basics/basicsimages/image_file.png b/doc/gitlab_basics/basicsimages/image_file.png new file mode 100644 index 00000000000..1061d9c5082 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/image_file.png differ diff --git a/doc/gitlab_basics/basicsimages/issue_title.png b/doc/gitlab_basics/basicsimages/issue_title.png new file mode 100644 index 00000000000..7b69c705392 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/issue_title.png differ diff --git a/doc/gitlab_basics/basicsimages/issues.png b/doc/gitlab_basics/basicsimages/issues.png new file mode 100644 index 00000000000..9354d05319e Binary files /dev/null and b/doc/gitlab_basics/basicsimages/issues.png differ diff --git a/doc/gitlab_basics/basicsimages/key.png b/doc/gitlab_basics/basicsimages/key.png new file mode 100644 index 00000000000..321805cda98 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/key.png differ diff --git a/doc/gitlab_basics/basicsimages/merge_requests.png b/doc/gitlab_basics/basicsimages/merge_requests.png new file mode 100644 index 00000000000..7601d40de47 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/merge_requests.png differ diff --git a/doc/gitlab_basics/basicsimages/new_issue.png b/doc/gitlab_basics/basicsimages/new_issue.png new file mode 100644 index 00000000000..94e7503dd8b Binary files /dev/null and b/doc/gitlab_basics/basicsimages/new_issue.png differ diff --git a/doc/gitlab_basics/basicsimages/new_merge_request.png b/doc/gitlab_basics/basicsimages/new_merge_request.png new file mode 100644 index 00000000000..9120d2b1ab1 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/new_merge_request.png differ diff --git a/doc/gitlab_basics/basicsimages/new_project.png b/doc/gitlab_basics/basicsimages/new_project.png new file mode 100644 index 00000000000..ac255270a66 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/new_project.png differ diff --git a/doc/gitlab_basics/basicsimages/newbranch.png b/doc/gitlab_basics/basicsimages/newbranch.png new file mode 100644 index 00000000000..da1a6b604ea Binary files /dev/null and b/doc/gitlab_basics/basicsimages/newbranch.png differ diff --git a/doc/gitlab_basics/basicsimages/paste_sshkey.png b/doc/gitlab_basics/basicsimages/paste_sshkey.png new file mode 100644 index 00000000000..9880ddfead1 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/paste_sshkey.png differ diff --git a/doc/gitlab_basics/basicsimages/profile_settings.png b/doc/gitlab_basics/basicsimages/profile_settings.png new file mode 100644 index 00000000000..5f2e7a7e10c Binary files /dev/null and b/doc/gitlab_basics/basicsimages/profile_settings.png differ diff --git a/doc/gitlab_basics/basicsimages/project_info.png b/doc/gitlab_basics/basicsimages/project_info.png new file mode 100644 index 00000000000..6c06ff351fa Binary files /dev/null and b/doc/gitlab_basics/basicsimages/project_info.png differ diff --git a/doc/gitlab_basics/basicsimages/public_file_link.png b/doc/gitlab_basics/basicsimages/public_file_link.png new file mode 100644 index 00000000000..1a60a3d880a Binary files /dev/null and b/doc/gitlab_basics/basicsimages/public_file_link.png differ diff --git a/doc/gitlab_basics/basicsimages/select_branch.png b/doc/gitlab_basics/basicsimages/select_branch.png new file mode 100644 index 00000000000..3475b2df576 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/select_branch.png differ diff --git a/doc/gitlab_basics/basicsimages/select_project.png b/doc/gitlab_basics/basicsimages/select_project.png new file mode 100644 index 00000000000..6d5aa439124 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/select_project.png differ diff --git a/doc/gitlab_basics/basicsimages/settings.png b/doc/gitlab_basics/basicsimages/settings.png new file mode 100644 index 00000000000..9bf9c5a0d39 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/settings.png differ diff --git a/doc/gitlab_basics/basicsimages/shh_keys.png b/doc/gitlab_basics/basicsimages/shh_keys.png new file mode 100644 index 00000000000..d7ef4dafe77 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/shh_keys.png differ diff --git a/doc/gitlab_basics/basicsimages/submit_new_issue.png b/doc/gitlab_basics/basicsimages/submit_new_issue.png new file mode 100644 index 00000000000..18944417085 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/submit_new_issue.png differ diff --git a/doc/gitlab_basics/basicsimages/title_description_mr.png b/doc/gitlab_basics/basicsimages/title_description_mr.png new file mode 100644 index 00000000000..e08eb628414 Binary files /dev/null and b/doc/gitlab_basics/basicsimages/title_description_mr.png differ diff --git a/doc/gitlab_basics/basicsimages/white_space.png b/doc/gitlab_basics/basicsimages/white_space.png new file mode 100644 index 00000000000..6363a09360e Binary files /dev/null and b/doc/gitlab_basics/basicsimages/white_space.png differ diff --git a/doc/gitlab_basics/starting_a_shell.md b/doc/gitlab_basics/starting_a_shell.md index c93b18d53d3..0b69206cd84 100644 --- a/doc/gitlab_basics/starting_a_shell.md +++ b/doc/gitlab_basics/starting_a_shell.md @@ -2,15 +2,17 @@ If you want to start using a shell and GitLab, make sure that you have created an account on [gitlab.com](https://about.gitlab.com/) -## Open a shell in your computer +## Open a shell -* Depending on your operating system, find the shell of your preference in your computer. Here are some suggestions +* 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 +- [Terminal](http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line) on Mac OSX -## Check if Git has already been installed in your computer +- [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 @@ -42,8 +44,6 @@ git config --global user.name ADD YOUR USERNAME git config --global user.name ``` -* And you should get your username - * To set your email address, type the following command ``` -- cgit v1.2.1 From d5e3dae303a7e875bbe244a10f242843a8e99afc Mon Sep 17 00:00:00 2001 From: karen Carias Date: Wed, 17 Jun 2015 09:44:48 -0700 Subject: fixed file name --- doc/gitlab_basics/README.md | 3 +- doc/gitlab_basics/start_using_git.md | 67 ++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 doc/gitlab_basics/start_using_git.md diff --git a/doc/gitlab_basics/README.md b/doc/gitlab_basics/README.md index 15fc8b83dbf..c434e0146e3 100644 --- a/doc/gitlab_basics/README.md +++ b/doc/gitlab_basics/README.md @@ -2,5 +2,6 @@ Step-by-step guides on the basics of working with Git and GitLab. -* [Starting a shell in your computer](starting_a_shell.md) +* [Start using Git on the commandline](start_using_git.md) + diff --git a/doc/gitlab_basics/start_using_git.md b/doc/gitlab_basics/start_using_git.md new file mode 100644 index 00000000000..f01a2f77eec --- /dev/null +++ b/doc/gitlab_basics/start_using_git.md @@ -0,0 +1,67 @@ +# 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 +``` -- cgit v1.2.1 From 0221628ffb4aa3dd21e37d6e37c77b9561918b91 Mon Sep 17 00:00:00 2001 From: karen Carias Date: Fri, 19 Jun 2015 08:12:49 -0700 Subject: deleted duplicated file --- doc/gitlab_basics/starting_a_shell.md | 67 ----------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 doc/gitlab_basics/starting_a_shell.md diff --git a/doc/gitlab_basics/starting_a_shell.md b/doc/gitlab_basics/starting_a_shell.md deleted file mode 100644 index 0b69206cd84..00000000000 --- a/doc/gitlab_basics/starting_a_shell.md +++ /dev/null @@ -1,67 +0,0 @@ -# Starting a shell in your computer - -If you want to start using a shell 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 -``` -- cgit v1.2.1