Monday, June 1, 2020

version controlling

Version control systems are a category of software tools that help a software team manage changes to source code over time.
Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back the clock and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members.

Repository -Backup copy of all files and version
Head -current version file
Branch -alternate version of file
Operations: checkout, checkin, commit, review, diff, versions, conflicts, resolve, merge, add, stash, revert, remove, push, pull

CVS:

  • Concurrent Version system (CVS) is a program thats lets a developer save and retrieve different development versions of source code. It also lets a team of developers share control of different versions of files in a common repository of files.
  • Useful for single user to maintain backups of text files
  • Works on window and Unix
  • Free software


Git:

A popular version control system. Git helps us manage our projects files. Git is a tool we install on our computer.
History: Git keeps track of every change we make to our project
Collaboration:
Feature branches:
Project = Repository (repo):  A repository is where git saves all of the data, all of the history, all of the changes it tracks for a particular projects.
Working directory: folder location on your computer where your project lives
Staging: Preparing something
Commit: Git's way of saving

git --version >>>>>>> this gives the version of git
git config -- user.name "Ram"
git config -- user.email "youremaill@address.com"
pwd
cd >>> change directory
mkdir >>> make directory
Clone: Copy an existing repository from a server to our computer's hard drive

No comments:

Post a Comment