Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
git-scm.com/book/ru/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2...
Or put yourself some kind of gui, for example www.sourcetreeapp.com
1. Installing git
sudo apt-get install git
2. Initial setup git
git config --global user.name "John Doe" //Your name
git config --global user.email "johndoe @example .com" //Your e-mail
git config --global core.editor nano //Text editor for git
git config --global merge.tool vimdiff //Comparison utility
git config --list //Check all settings
3. Configure SSH authentication
ssh-keygen -t rsa -C "your_email @example .com" //Create an ssh key on the local machine if not already created
xclip -sel clip < ~/.ssh/id_rsa.pub //Copy the public ssh key to the clipboard
We go to the page: SSH Keys and click the Add SSH Key button. Specify a name and paste the key in the Key field. Click Add Key.
4. Working with the repository
First, let's create a new repository on the github.com website, if it is a new project.
Now let's go to the project folder on the local machine and give the command:
git init //Initialize the git repository
git add * //Add existing files to track changes in them
touch .gitignore //Create a file where we will put files that are not required track
git remote add origin [email protected]:yourname/yourproject.git //Link the remote repository as origin
git pull origin master //Download the latest revision from the remote repository
git push //Submit new edits to the server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question