Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7832289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:08:19+00:00 2026-06-02T12:08:19+00:00

I am new to development and version control. My present workflow to make changes

  • 0

I am new to development and version control.

My present workflow to make changes to the project:

  1. I created index.html with minimum features. Being new, I don’t have enough confidence on various CSS tags that break a page, by changing something small. For now I am using Bootstrap, which is simple to use, but with limited features.

  2. To add some new content I copy index.html to index_.html and change index.html. This is purely for a fear that if the page breaks, I instantly copy index_.html to index.html and have a sigh of relief. This is my workflow, which would change when I have a little experience.

How do I use Git just to this and nothing else for now. I don’t want to copy index.html.
I have already read progit and seen following posts. They seem to point to a multiple users, versions and so on. It would take me a while to reach there. But if I know Git now, I can reach there in shape.

Workflow best practice with git and github?

Git Workflow Best practices

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/
(I have placed all these links, so that someone knows I have read enough and does not pull this post down.)

None of them seem to answer my stupid question that is important for my evolution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:08:33+00:00Added an answer on June 2, 2026 at 12:08 pm

    To set up your repository for the first time:

    git init
    git add index.html
    git commit
    

    That saves a snapshot of your index.html exactly as it is now. Whenever you want to try something new, make changes directly to index.html.

    If the page breaks, just do this:

    git checkout index.html
    

    That throws away your most recent changes and restores the last saved snapshot of index.html.

    But if the change goes well, do this instead:

    git commit index.html
    

    That saves a new snapshot, so that you can go back to it if the next change breaks.

    Now, as you know, git has a lot more power to it. You may find a better workflow that has advantages over the way you do it now. But if you want to start with an analogy to your familiar pattern, that’s how to do it.

    (By the way, whenever you run “git commit” a screen will appear asking you for a commit message — you can use that to describe the changes so you can keep track of them. Nobody sees it but you, so if that doesn’t sound useful, you could decide to ignore it.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm setting up a new development server and want to install the latest version
I seem to make this mistake every time I set up a new development
I'm new to development on the iPhone. Just about every sample project (as well
Here is a real version control system dummy! proper new starter! The way I
I am very new to version control and I would like some help if
I am new to git and distributed version control but have managed, without much
I'm kind of new to version control with Git. I read this guide and
I have recently joined a small development team that is considering a new version
I have a framework based project that I'm using SVN to version control. I
OK, I'm new to Mercurial and version control branching in general, so I may

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.