This will be updated from time to time
First, confirm the registration information.
sudo apt-get isntall git
git config --global user.name "username"
git config --global user.email "mail address"
Register the key
ssh-keygen -t rsa -C "mail address"
After that, enter yes several times.
xxxxx.pub
Then cat xxxxx in the above file.pub 。
Enter. Register the output contents below
https://github.com/settings/keys
After that, move to the target directory with "cd"
Repository(project)After registering, register with the following command
git init
git add .
git commit -m 'Initial Commit'
git remote add origin [email protected]:user/project
git push -u origin master
fatal: remote origin already exists.
→ When the output is as above, delete it with the following command
git remote rm origin
git clone https://github.com/Old-rever-brave/Laravelmix-tutorial
The above is an example, but entering the command as above will bring down the repository locally.
Recommended Posts