zoukankan      html  css  js  c++  java
  • git 在Ubuntu上使用git和github

    1.installing git for linux

    sudo apt-get install git

    2.configuring github: create your github account

    git config --gloabal user.name "user_name"
    git config --global user.email "email"

    3.creating a local repository

    git init git_test
    cd git_test

    4.creating a repository on github or pull a repository

    creating a repository on github

    git remote add vscode https://github.com/xulei717/VSCode.git

    or pull a repository

    git remote add vscode https://github.com/xulei717/VSCode.git
    git pull vscode master

    5.creating a file 

    gedit README

    6.adding repository files to an index

    git add README

    7.committing changes made to the index

    git commit -m "some_message"

    8.pushing files in local repository to github repository

    git push vscode master

    参考:

    https://www.howtoforge.com/tutorial/install-git-and-github-on-ubuntu/#-configuring-github

    https://git-scm.com/

  • 相关阅读:
    使用java实现面向对象 第一章
    深入.NET平台和C#编程笔记 第九章 文件操作
    MySQL_第七章
    MySQL_第八章
    MySQL_第五章
    MySQL_第四章
    MySQL_第三章
    MySQL_第二章
    MySQL_第一章
    S2_OOP第二章
  • 原文地址:https://www.cnblogs.com/xl717/p/11971104.html
Copyright © 2011-2022 走看看