• free git online


    geilibuy: Repositories

    Your Repository has been created

    Need help getting started? Read on…

    Already an expert? Jump to the activity page or view more setup options.


    1. Install Git

    Git can be installed easily on Mac, Windows, and Linux. Read our help articles for creating SSH keys on Windows and Mac if you have not done so already.

    yum install git-core
    apt-get install git-core

    Once installed, we recommend initializing git. Fire up your command line app such as Terminal (on Mac) or Git bash (on Windows) and run the following commands.

    git config --global user.name "lingzhi mao"
    git config --global user.email "frederick.mao@gmail.com"

    For more options, read the chapter on Installing Git from the git-scm book.


    2. Start using Git

    You can start from scratch, import files, or even use an existing Subversion or Git repository. See an example of each option below.

    Starting from scratch, your first commit:

    mkdir my-project
    cd my-project
    git init
    echo "This is my new project on Beanstalk." > README
    git add README
    git commit -m "My first commit."
    git remote add beanstalk git@mlzboy.beanstalkapp.com:/geilibuy.git
    git push beanstalk master

    Import existing files on your computer:

    cd my-project
    git init
    git remote add beanstalk git@mlzboy.beanstalkapp.com:/geilibuy.git
    git add .
    git commit -m "Importing my project to Git, without saving history."
    git push beanstalk master

    Import (clone) an existing SVN repository:

    git svn clone http://account.svn.beanstalkapp.com/my-project my-project
    cd my-project
    git remote add beanstalk git@mlzboy.beanstalkapp.com:/geilibuy.git
    git push beanstalk master

    Move an existing Git repository:

    cd my-git-repo
    git remote add beanstalk git@mlzboy.beanstalkapp.com:/geilibuy.git
    git push beanstalk

    More Git resources

    Read our article on getting started with Git for tutorials and books about Git.

    Need help getting started? Contact support

    Done reading? Then jump to the activity page or view more setup options.

    Close

  • 相关阅读:
    Git
    Spring
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/lexus/p/1911607.html
Copyright © 2020-2023  润新知