# practice **Repository Path**: coder-msc/practice ## Basic Information - **Project Name**: practice - **Description**: 日常练习 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-17 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # practice # git 基本操作 ``` git 的基本操作 ``` ## create a new repository on the command line ``` echo "# git1" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/Devil-K/git1.git git push -u origin master ``` ## push an existing repository from the command line ``` git remote add origin https://github.com/Devil-K/git1.git git push -u origin master ``` ## import code from another repository ``` You can initialize this repository with code from a Subversion, Mercurial, or TFS project. ```