You are on page 1of 6

18BCE363

PRAFUL PARMAR

Practical 4

Aim: To understand about git and how to control git versions

Figure 1 screenshot for git versions


we can see various commands of git:

Touch : it is used to create files


Git status: it is used to check status for file if we add or commit the status of untracked files will be
changed to working tree clean

Git add . : will help us to add files in the working directory

Git commit -m “add comment for the working version”: to assign version Name/Number

Git rm –cached “file-name.file-extension”: helps to remove file from current directory and delete

Git remote add testing link: to add repositories

Git pull torepository repository: to add repository

Git pull –force torepository repository: to forcefully adding repository

You might also like