Skip to content

arfian/coba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Git Learning

Instalation

  • Create Github Account
  • Download and install msysgit git client
  • Open git bash (you will be automatically directed to C:/Users/[username]/ directory)

Set git basic configuration (name and email)

git config --global user.name "yourname"
git config --global user.email "youremail@email.com"

Generate a public key

ssh-keygen -t rsa -C "youremail@email.com"
  • Open Github SSH Settings, click Add SSH Key, and then insert value of your public key (open C:\Users\[username]\.ssh\id_rsa.pub, copy the text, and paste to) to key

Creating Repository and Git Basic Command

  • Open git bash
  • Create Repository on Github
  • Clone the repository. There was 2 ways to do this.
  • The first one is by clone the empty repository to your local pc first

      git clone git@github.com:username/repositoryname.git
    
  • Or define your own folder as git repository and then set the remote

      git add init
      git remote add origin git@github.com:username/repositoryname.git
      git pull
    
  • Create some file, and then add it using

      git add "yourfilename"
    
  • Commit it

      git commit -m "your commit message"
    
  • Push it to github server

      git push -u origin master
    

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages