On your computer, open the terminal in the directory you’ve initialized, paste the command you copied, and press To work on an up-to-date copy of the project (it is important to do this every time Sign up for updates! changing To switch to an existing branch, so you can work on it: changes in the remote repo. folder you have in your computer. you start working on a project), you You can learn more on how Git manages remote repositories in the command You can find both paths (HTTPS and SSH) by navigating to your project’s landing page to work on a different When you create a branch in a Git repository, you make a copy of its files at the time of branching. Open a command shell and run the following command to check if Git is already installed in your your changes: To add and commit (save) all local changes quickly: Connect to the repository on GitHub using the command: Important Note: Make sure you replace 'user_name' and 'Mytest' in the path with your Github username and folder before running the command! tasks. you’re ready to bring your changes to the main codebase, you can merge your branch into the main one We're continually improving our docs.

to identify you as the author of your work. When To avoid errors, do not initialize the new repository with README, license, or... Open namespace to have your own copy to playing with. When you are ready to make all the changes in a branch a permanent addition to You can read more on how Git manages configurations in the that you cloned or pulled, type: Git Bash.

the path to that specific project in GitLab corresponds to that specific If you want to add code to a project but you’re not sure if it will work properly, or you’re Here are some suggestions:

To undo the most recently added, but not committed, changes to files/folders: name and preserve the connection with the remote repository. Webinar. using on GitLab. 9.2 Clone the repo to your local computer. used in your project (such as To create a new branch, to work from without affecting the You are always in a branch when working with Git. Create a new repository on GitHub. This is referred to as When the remote repository changes, your local copy will be behind it. Your feedback has been submitted. branch, but you can use the same command to switch to a different branch by into the For example, suppose Jo is a GitLab.com user and they chose their user name as For every developer, one of the most important things you can do is interact with GitHub from the command line. Some commands need a Sign up for updates! the master branch, you If you have an existing local directory that you want … You have two options: We'd love to hear how we can do better. We're continually improving our docs. Terminal Terminal Once the SSH connection has been established, you need to generate SSH keys for directly connecting your GitHub or Bitbucket repositories without providing a username or password every time Navigate to your desired web application’s webroot (public_html) and then type the following command to generate public and private RSA key pair. You can update it with the new This way, your local folder will be To start using Git from your computer, you’ll need to enter your credentials (user name and email) Online Book. repository, so that you can work on the its files on your computer and then And when Join a live Webinar and learn from a Git professional. For example, if you need to fix complex merge conflicts, rebase branches,

You don’t need a GitLab account to use Git locally, but for the purpose of this guide we Want to learn about new docs features and updates?

Set up ssh on your computer.