create a basic local repo
$ git init
configure git with my user
$ git config --global user.email email.address@email.com
$ git config --global user.name "My Name"
create a .gitignore file
$ echo install/ > .gitignore
add all files not in .gitignore to git
$ git add .
show my pending adds
$ git status
perform initial commit
$ git commit -m 'created'
show current status
$ git status
# On branch master
nothing to commit (working directory clean)
This blog serves as a dumping ground for my own interests. On it you will find anything which I want to keep track of; links, articles, tips and tricks. Mostly it focuses on C++, Javascript and HTML, linux and performance.
Wednesday, 25 September 2013
Friday, 20 September 2013
execute a command remotely using ssh
Execute a command remotely
eg: Set remote date to local date (useful if say you don't have ntpd running)
ssh root@nas 'ntpdate 0.fedora.pool.ntp.org 1.fedora.pool.ntp.org'
eg: Set remote date to local date (useful if say you don't have ntpd running)
ssh root@nas 'ntpdate 0.fedora.pool.ntp.org 1.fedora.pool.ntp.org'
Subscribe to:
Posts (Atom)