Giter VIP home page Giter VIP logo

git_learning's Introduction

List of Basic Git Linux Command

This is my basic note while learning git under linux environment. Git is very useful and worth-learning. Hope it is helpful to you.

Outline

  • Ch1:
    • setting of user name
    • initializing repository
    • hot key.
  • Ch2:
    • adding files to stage
    • commit (save files)
    • watching history (log)
    • rename & delete
    • ignoring certain files.
  • Ch3:
    • connection to remote git server.
    • case1: existing local folder
    • case2: clone remote folder
  • Ch4:
    • basic usage of branch (create, rename, delete).
    • checkout: change your current porision (head).
    • merge: making basic development flow.
  • To quickly set your git environment, I recommend you to run ch1.sh to set your user.name, user.email as the followings,
$sudo bash ch1.sh

SSH Linux Key with CSSP Gitlab Server

  1. Go to 140.113.150.98:8081 and log in.
  2. Go to -- User Settings > SSH Keys
  3. Open local terminal and type
$ssh-keygen -t rsa -C "[email protected]"
  • And then just press "enter" continuously till a small randomart image appears.
	+----[RSA 2048]-----+
	|@+ooo  . .         |
	|xx.. #        ..x8 |
	+----[SHA256]-------+
  • Secondly, cat the public rsa key as follows. The key should begin with ssh-rsa and end with your email.
$cat ~/.ssh/id_rsa.pub
  1. Copy and paste all the key shown on your local terminal onto GitLab SSH Key Page (Opened in Step 2).

Well Done! After this setting, you no-longer need to enter password while pushing, cloning, or pulling your remote repository.

git_learning's People

Contributors

abc1199281 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.