Saturday, 16 December 2023

About GITHUB Version Control


About Version Control with github:

Version Control called as “version control” software repository.

About Repositories:

When you start a new project, you should make a folder to contain just the stuff for that project. 

When you want to back your work up on another computer, there are websites that specialize in git. The most popular is GitHub, acquired by Microsoft in 2018. In these notes, we’ll teach you how to use GitHub and assume that’s where you’re publishing your work.

If you want git to start tracking a folder and keeping snapshots, to enable the features listed above, you have to turn the folder into what is called a git repository, or for short, a repo.

By default, a folder on your computer is not tracked by git

about Tracking changes in the repository:

As you work on the project, inevitably you have ups and downs. May be it goes like this:

You start by downloading a dataset from the instructor and starting a new blank Python script or Jupyter notebook in your repo folder. 

Everything’s fine so far. You try to load the dataset but keep getting errors. 

A friend at dinner reminded you about setting the text encoding, and that fixed the problem. 

You get the dataset loading before bed. You get the data cleaned without a problem. 

During class, the instructor asks your team to make progress on a hypothesis test, but you run out of time in class before you can figure out all the details. The last few lines of code still give errors. 

Sharing online:

The git term for a site on which you back up or publish a repository is called a remote. This is in contrast to the repo folder on your computer, which is called your local copy.

There are three important terms to know regarding dealing with remotes in git; I’ll phrase each of them in terms of using GitHub, but the same terms apply to any remote:

  • For repositories you created:

    • Sending my most recent commits to GitHub is called pushing my changes (that is, my commits).

  • For repositories someone else created:

    • Getting a copy of a repository is called cloning the repository. It’s not the same as downloading. A download contains just the latest version; a clone contains all past snapshots, too.

    • If the original author updates the repository with new content and I want to update my clone, that’s called pulling the changes (opposite of push, obviously).

Although technically it’s possible to pull and push to the same repository.

No comments:

Post a Comment

ads

portfolio page website

   Some important topics in portfolio webpage Portfolio Sections: ✔ ️ Summary and About me: Information yourself in brief. ✔ ️ Skil...