General Ctrl+Shift+P, F1 Show Command Palette Ctrl+P Quick Open, Go to File… Ctrl+Shift+N New window/instance Ctrl+W Close window/instance Ctrl+, User Settings Ctrl+K Ctrl+S Keyboard Shortcuts Basic editing Ctrl+X Cut line (empty selection) Ctrl+C Copy line (empty selection) Alt+ ↓ / ↑ Move line down/up Ctrl+Shift+K Delete line Ctrl+Enter / Ctrl+Shift+Enter Insert line below/ above Ctrl+Shift+\Continue reading “Visual Studio Code – Keyboard shortcuts for Linux”
Category Archives: GIT
Generating a new SSH key
Generating a new SSH key Open Terminal. Paste the text below, substituting in your GitHub email address. $ ssh-keygen -t rsa -b 4096 -C “your_email@example.com” This creates a new ssh key, using the provided email as a label. > Generating public/private rsa key pair. When you’re prompted to “Enter a file in which to save theContinue reading “Generating a new SSH key”
Git Interview Questions
Git Exam Questions and answers Which of the following should be done after installing Git on a system for the first time? (Choose all that apply) – git config –global user.name “” – git config –global user.email Which Git command is used to stage changes for a commit? – git add is used to stageContinue reading “Git Interview Questions”
Git Status, Git Commit, Git Add
To Edit File in Git cd to directory: vi views/index.jade (File Name) Edit the file in VI Editor and save :qw! To see Status: git status # On branch master # Changes to be committed: # (use “git reset HEAD <file>…” to unstage) # # modified: views/index.jade # To Commit git commit -m “change header text”Continue reading “Git Status, Git Commit, Git Add”
Setting up Priate Key Access
Setting up Priate Key Access\ An easy way to authenticate with remote git server like GitHub is to use an ssh key pair. On a CentOs environment, you can generate an ssh key pair like this ssh-keygen -t rsa -b 4096 After generating the key pair, copy the contents of ~/.ssh/id_rsa.pub. [root@aryan-34252e5f2 ~]# ssh-keygen -tContinue reading “Setting up Priate Key Access”
You must be logged in to post a comment.