Giter Site home page Giter Site logo

git-tutorial's Introduction

git-tutorial

repository for git tutorial

git remove remote folder

  1. remove folder and commit
  2. push to remote folder

switch to remote branch

  • git checkout --track origin/daves_branch

branching

git checkout -b "iss1" 5773
git checkout -d "iss1"
git branch -a

git fetch

git fetch --all git checkout origin/homeuse git branch -b "iss1" git checkout "homeuse" git merge "iss1"

add origin

git remote add origin git://github.com/ling910520/file-monitoring git push - u origin master

resync with sources:

git fetch
git reset --hard origin/master

tracked newly created remote branch

git checkout --track origin/test1

Changing the Last Commit:

git commit --amend --no-edit

git rebase

git rebase master git rebase --continue

git delete remote branch

git push -d origin test1

git push branch to origin

  • git push origin testfa
  • git push --set-upstream origin testing-file

view merge conflict

  • git status

clone without create a new folder

  • git clone <repo_url> .

reset url origin

Please commit your changes or stash them before you switch branches.

git reset --hard

Checkout

git checkout --orphan latest_branch

Add all the files

git add -A

Commit the changes

git commit -am "commit message"

Delete the branch

git branch -D master

Rename the current branch to master

git branch -m master

Finally, force update your repository

git push -f origin master

PS: this will not keep your old commit history a

Untrack files already added to git repository based on .gitignore

git rm -r --cached .
git add .
git commit -m ".gitignore fix"

git delete remote tag

-> git push tags to remote origin

git push origin <tag_name>

git push --tags

-> delete remote tag

git push --delete origin simplify_event_config

git-tutorial's People

Contributors

ling910520 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.