THE GITHUB PROJECT
- Imagine while creating your repository on GitHub, you remember that you have to include your excel file or any file that is all the way tacked in your folders and you want to use Git. How do you go about it.
GIT
How does Git work;
- It use Linux , where you use SSH (Secure shell) which let you opens an encrypted terminal session to a remote machine in our case GitHub.
THIS IS THE TYPICAL WORKFLOW FROM START TO FINISH
Get Git bash first
Great now open
we need a local folder in our Git Bash we run the following commands;
- ssh - to create a remote login
- ssh-keygen -t <> -c <adress> - with the correct server_address
- ls -al ~/.shh- check if you have added the new sshkey
- ls - which is listing the files and directories in the active directory
- cd - which opens a directory
- mkdir <name> - make a new directory
- touch file.text - to create an empty file
- nano file.text - write a comment or context of the data use in place or -echo-
{CREAT REPOSITORY ON GITHUB COPY SSH}
- git remote add origin <ssh_key> - link to the remote server
- git commit - commit the link
- git status - check the branch
- git fetch - download a latest change
- git push - to GitHub
CONCLUTION
Git is easy once you understand the commands.
Refresh your GitHub and watch as you have connected.
Top comments (0)