A collection of git tips and tricks. You can suggest more if you know anything else that might be useful that can be listed here.
Set configuration values for user name,email etc
$ git config --global user.name "Your Name"
const formatDate = (inputDate) => { | |
const date = new Date(inputDate); | |
if (!isNaN(date.getTime())) { | |
const day = date.getDate().toString(); | |
const month = (date.getMonth() + 1).toString(); | |
// Months use 0 index. | |
return (month[1] ? month : '0' + month[0]) + '/' + | |
(day[1] ? day : '0' + day[0]) + '/' + | |
date.getFullYear(); |
A collection of git tips and tricks. You can suggest more if you know anything else that might be useful that can be listed here.
Set configuration values for user name,email etc
$ git config --global user.name "Your Name"
$ cat /proc/cpuinfo | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 78 | |
model name : Intel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz | |
stepping : 3 | |
microcode : 0xba | |
cpu MHz : 600.011 | |
cache size : 4096 KB |