1. PRINCIPLES AND PRACTICES , PROJECT MANAGEMENT¶
Activities to be done:¶
1]Work through a git tutorial.
2]Build a personal site(in the class archive) describing me and my final project.
Project Management¶
Git Tutorial¶
What is Git?¶
Git is most commonly used version control system.. Git is free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. The purpose of Git is to manage a project, or a set of files, as they change over time. Git stores this information in a data structure called a repository.
What is a git repository?¶
A git repository (or repo) contains all of the project files and the entire revision history. Git stores this information in a data structure called a repository. A git repository contains, among other things, the following: A set of commit objects, A set of references to commit objects, called heads.
Installing Git for Windows¶
Git commands used in various situations¶
\ We can check out the various commands used in git through command prompt.
Cloning the git repository¶
Git clone is a git command line utility which is used to target an existing repository and create a clone or copy of the target repository. A local repository is created on the computer by cloning a remote repository. Local repositories reside on the computer whereas remote repositories are hosted on a server that is accessible to all the team members on the internet or on a local network.
Next, the command git init should be used to intialize the account.
After initiliazing the account , the repository should be cloned using the git clone command. The SSH URL which was copied from my gitlab page is pasted beside the git clone command. This creates a copy of the remote repository on my computer.
git clone “SSH key”
Git Bash¶
What is Git Bash?¶
Git Bash is an application that provides Git command line experience on the Operating System. Git Bash is a package that installs Bash, some common bash utilities, and Git on a Windows operating system. In Git Bash the user interacts with the repository and git elements through the commands.
Git Bash should be done inside the local repository so that all changes will be noted.
Pushing and pulling changes¶
git add and git push
Adding changes done in local repository and pushing to GitLab.[remote repository]
git pull command is used when making changes on other systems. It will update all work across all systems. All the files from the remote repository can be pulled back.
To push the changes from local repository to remote repository , the following commands should be given :
git add -A
git commit -m “Any message”
git push
Making the webpage¶
I made the webpage in Markdown language. It is a simple language with simple syntax. So beginners will find it easy to use it than HTML.
Markdown language cheatsheet¶
Text editor used¶
I used atom text editor for writing my documentation in markdown language. Initially, I used Visual studio code but the images were not showing.
I also tried sublime text editor but I couldn’t see the preview like how it appears in atom. I found atom very convenient among all the text editors.
To preview in sublime and visual studio code : ctrl + shift + P
Problems faced in atom
- Atom was comparitively easy. Initially, I had difficulty in previewing my document[written in markdown language] in atom.
To preview in atom : ctrl+shift+M or
Go to Packages > Markdown preview > Toggle preview
I observed that the preview, in atom doesn’t appear when ctrl+shift+M is pressed for one time. It should be pressed 3 times to see the preview.
The below image shows the preview.
My site gone live¶
Principles and Practices¶
My project idea is a tracking device which can help us find valuables. This device is attached or mounted on our valuables. A mobile tracking app helps in tracking or finding the device. When an item is lost, the ‘track’ button should be pressed in the app. This will emit a buzzing sound which will help us in finding the item. It also shows the location of the object. It uses bluetooth technology. When the tracking device is out of bluetooth range, the app will help in viewing the recent GPS location of the device just like the ‘find my iphone’ feature.