Don't wanna be here? Send us removal request.
Text
Day 3 - Node.js
Of course, I am just reading and learning basic stuff on why and how use Node.js.
mainly though Node.js command prompt to run a small program node test.js
tomorrow I will dig deeper to build an HTTP Server
6 notes
·
View notes
Text
Between Day 2 & 3
I discover GIT Gui. It was install on my computer because of GIT BASH I suppose.
So I look around for other Guis and found this article showing differents possibilities. So I am now testing GitHub for Desktop ;o)
the experience seems thrilling
0 notes
Text
Day 2 - GitHub
git clone https://github.com/facebook/react.git get a copy of a rep in my current folder
I created my own repo daysofcode in order to run some test. It happend I was already connect in the bash to GitHub using SSH. What a nice surprise, it didn”t ask me my account and password.
No in fact, I wasn’t. I explain, you don’t need to be log to clone, you only need to be log or ssh connect to push stuff back on your repo. Logical
git push origin master
Yeah, it worked !
Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 398 bytes | 24.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) To https://github.com/jeancharlesamey/daysofcode 385dfe9..16da4c6 master -> master
I created a new file in the repo online, then use the command git pull origin master to get my local repo/git update. It worked like a charm.
Now, I just need someone else to run project and update my repo/git regularly. Is there a way to make the update automatic like a drive ? GitHub-auto-respond : Yes there is a repo for that ! So I just need to prepare myself for it.
0 notes
Text
Day 1 - Git
I reboot my project of getting better at coding by taking an open class on GIT. I am amazed ho useful this few lignes of code could help to have a real system of archive and open project to team.
First let’s install git
run git bash
mkdir newProject create a directory for a new project
cd newProject to go in the new folder
git status get the the status of the git
git init to init this folder as git folder
touch aNewFile.md create a new file
git add aNewFile.md add it to the git
vim aNewFile.md edit the file in vim or in sublime
git add aNewFile.md add the modify file it to the git
git commit -m -a "add a first line” commit a comment about the new version of the file
git log to get the log and the different modification on a file SHA
git checkout SHA to look at a certain file modification usign the SHA
git checkout master to look back at the master (list version)
ctrl+insert to copy bash element
shigt+insert to paste to bash
git revert SHA revert some existing commits, more options
git commit --amend -m "the new message" rewrite last commit message
git reset --hard erase change I made before to commit
git --help help in the bash
git commit -help help on a command in the bash
git commit --help help on a command in an explorer
A bit of difficulty to understand how to use and not use vim, but now I am able to use Sublime on my project and still do add/commit using git bash.
- Next stop ? GitHub
PS: I pimp tumblr theme to show italic element as code source
0 notes