I started a 12 week bootcamp course with Makers Academy for apprentices employed by a well known travel company. After the bootcamp this will take me through to working with the company for the rest of my placement, and depending on the exams, portfolio, projects and interviews, I will hopefully become a software developer!
During my first week I met the rest of the fellow apprentices and everyone has been so welcoming and supportive to each other. I also spent this time to meet with my new manager and going through inductions with the company.
Git
After the first day I went onto completing various e-learning modules on their platform practising using Git, a version control system to track any changes in the files and also allowing for easier collaboration by others to merge into one branch.
I was able to set up a connection between my local git account and Github through an SSH key and authentication with a passphrase.
Basic git workflow:
$ git init:
initialises a git project in the directory.$ git add <filename>:
copies the file from the working directory to the staging area.$ git commit -m "add comment":
saves the file changes to your local repository.$ git remote -u origin git@github.com:makersacademy/playing-with-git.git:
creates a remote repository called "origin" which points to Github.$ git push -u origin master:
pushes the local repository files up to the remote repository. "u" saves the two parameters as default.$ git push:
now next time we don't have to type 'origin master'.$ git pull origin master:
retrieves the code from your remote repository to your local repository.
Other useful Git commands:
$ git log:
details the full list of commits you've made.$ git status:
provides an overview of what files have changed since the last commit.$ rm <*filename*>:
removes the file and adds this change to the staging area in one go. Remember to commit this change too!
Command Line
This is such a powerful tool to directly access and interact with the computer.
Some commands:
ls:
lists the contents of the current directorytouch:
creates a new filemkdir:
creates a new folderrmdir:
removes a folderrm:
removes a filepwd:
prints the full path of the working directorycd:
change directory
Manipulate files
cp someFile newFile:
copies the first file and the second is the new file that will be created from it.mv newFile ../newFile:
the first parameter is the file to be move and its location. The second is where the file will be moved to, in this instance we used ... to specify that we wanted to move the file up to our parent directory.mv newFile newerFile:
can rename the file from newFile to newerFile