I am new to development and version control.
My current workflow for making changes to the project:
I created index.html with minimal functions. Being new, I don't have enough confidence in the various CSS tags that break a page, changing something small. Right now I'm using Bootstrap, which is easy to use but with limited features.
To add new content, I copy index.html to index_.html and modify index.html. It's purely for fear that if the page breaks, I instantly copy index_.html into index.html and a sigh of relief. This is my workflow, which will change when I have a little experience.
How can I use Git just for this and nothing more. I do not want to copy index.html. I already read prog and saw the following messages. They seem to point to multiple users, versions, and so on. It took me a while to get there. But if I know Git now, I can reach there in shape.
Best workflow practices with git and github?
Git Workflow Optimization
http://news.ycombinator.com/item?id=1826279
http://gweezlebur.com/2009/01/19/my-git-workflow.html
http://yehudakatz.com/2010/05/13/common-git-workflows/
http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html
http://nvie.com/posts/a-successful-git-branching-model/ ?
http://thinkvitamin.com/code/source-control/git/our-simple-git-workflow/ ( , - , .)
, , , .
:
git init git add index.html git commit
index.html , . , - , index.html.
, :
git checkout index.html
index.html.
git commit index.html
, , .
, , git . , , . , .
(, , "git commit", - , . , , , , .)