Skip to main content

Posts

Showing posts with the label git

Chef: ChefDK

Create a linux machine, login into it and execute the following command: curl -s https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk Now we need to change the default ruby to point it to the chef ruby and not the system ruby. Execute the following command for it. echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile Note: eval  is part of POSIX. Its an interface which can be a shell built-in.Its described in the "POSIX Programmer's Manual":  http://www.unix.com/man-page/posix/1posix/eval/ eval - construct command by concatenating arguments It will take an argument and construct a command of it, which will be executed by the shell. This is the example of the manpage: 1 ) foo = 10 x = foo 2 ) y = '$' $x 3 ) echo $y 4 ) $foo 5 ) eval y = '$' $x 6 ) echo $y 7 ) 10 In the first line you define  $foo  with the value  '10'  and  $x  with the value  'foo' . Now define  $y , which consists ...

Setting your username in Git

Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username. You can change the name that is associated with your Git commits using the  git config  command. The new name you set will be visible in any future commits you push to GitHub from the command line. If you’d like to keep your real name private, you can use any text as your Git username. Changing the name associated with your Git commits using  git config  will only affect future commits and will not change the name used for past commits. Setting your Git username for  every  repository on your computer Open  Git Bash . Set a Git username: $ git config --global user.name " Mona Lisa " Confirm that you have set the Git username correctly: $ git config --global user.name > Mona Lisa Setting your Git username for a single repository Open  Git Bash . Change the current working directory to the local repository whe...

Setting your username in Git

Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username. You can change the name that is associated with your Git commits using the  git config  command. The new name you set will be visible in any future commits you push to GitHub from the command line. If you'd like to keep your real name private, you can use any text as your Git username. Changing the name associated with your Git commits using  git config  will only affect future commits and will not change the name used for past commits. Setting your Git username for  every  repository on your computer Open  Git Bash . Set a Git username: $ git config --global user.name " Mona Lisa " Confirm that you have set the Git username correctly: $ git config --global user.name > Mona Lisa Setting your Git username for a single repository Open  Git Bash . Change the current working directory to the local repository where you want to configure the name tha...