Giter Site home page Giter Site logo

testgit's Introduction

this is just a test repo!

======================== commit a new project to repo ========================
$ cd myproject

$ git init

$ git add .
	add current directory and any file into repo
	
$ git commit -m 'initial commit'
	commit staged files to local repo

======================== manage remote connection info ========================
$ git remote -v
	display remote URLs
	
$ git remote add origin git@gitserver:/opt/git/project.git
	make(log) connection to some remote server

======================== make change and commit to repo ========================
$ git add filename1
$ git add filename2
$ git commit -m 'modified something'





======================== check status ========================
$ git status
======================== view unstaged change ========================
$ git diff
======================== view uncommited staged change ========================
$ git diff --stage
 !!!recommend use Git GUI tools from gitk instead !!!

 
 
 
======================== view history info ==========================
$ git log
 !!!recommend use Git history tools from gitk instead !!!

 
 
 
======================== upload to server ========================
$ git push origin master
	final push




?<<<<<<< HEAD dev1
	
	======================== create brunch for dev1 for another programmer ========================	
	git checkout -b dev1
	dev1.step2
	
	dev1's modification is merged at last, when all others had pushed to orgin/master
	
?=======


	
	?<<<<<<< HEAD
		============= some change on mater brunch ===============
	?=======

		========================= dev2 brunch for another programmer ============
		git checkout -b dev2

		dev2.step2
	?>>>>>>> dev2




	

	?<<<<<<< HEAD
	
		dev3 do modification on master when the actuall remote/origin/master is advanced already by dev2.
		when he try to push local master into remote, there is an error.
		because remote/origin/master is modified simutaniously as dev3 do the work.
		dev3 can only fetch remote master first and try to merge use "git merge origin"
	

	?=======

		dev2 do some mofidy on master
		so master branch will be advanced than remote/origin/master normally.
		actually remote/origin/master will not move if we donnot pull/push with remote.

		dev2's modification is pushed first, and sucessed

		dev3 will need "git merge origin" before he can push to origin!!!
	?>>>>>>> origin/master

?>>>>>>> origin/master
	

testgit's People

Contributors

usstq avatar

Watchers

James Cloos avatar  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.