11
- Commands
- Git
- SSH
- Linux
Commands
Git
Clone a Git repository.
“` $ git clone git@github.com:student29/continuous_integration_example.git
“`
Add a file.
“` $ git add readme.txt
“`
Commit a file.
“` $ git commit -m “added readme file” readme.txt
“`
Push a file up to the Git master.
“` $ git push
“`
SSH
SSH into an EC2 instance.
“` $ ssh -i cd29.pem ec2-user@ec2-23-22-209-222.compute-1.amazonaws.com
“`
Linux
List files in a directory.
“` $ ls -las
“`
Change permissions on a private key file.
“` $ chmod 400 cd29.pem
“`
Open a file in vim.
“` $ sudo vim filename.txt
“`
Close a file in vim without saving.
“` $
:q! “`
Save and close a file in vim.
“` $
:wq! “`