-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
55 lines (46 loc) · 2.06 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ! What is git?
// * Version Control System
// * Keeps track of changes to our code over time
// ! What is GitHub?
// * A website to host our git repositories
// * A social network of programmers
// ? Common vocabularies
// * Repository - A collection of files and folders that are tracked by git
// * Add - Adding files and folders to be tracked by git
// * Commit - A snapshot of our files at a point in time
// * Branch - A series of commits, typically stemming from a main branch
// * Merge - Merging combines branches together
// * Clone - A copy of a repository
// * Fork - A copy of a repository on GitHub owned by you
// ! Git commands
// * git init - Initializes a git repository in our current working directory
// * git status - Shows the current working tree status
// * git add <file> - Adds a specific file to be tracked
// * git add . - Adds the current directory to be tracked
// * git commit -m "message" - Creates a commit with files from the staging area
// * git log - Shows a history of our commits
// * git checkout <commit> - Checks out a specific commit
// * git checkout master - Checks out the master branch
// * git branch <branch-name> - Creates a new branch
// * git branch - Shows a list of all branches
// * git merge <branch-name> - Merges branch into main branch
// * git clone <url> - Clones a repository from the url
// * git push origin <branch-name> - Pushes commits to the branch on GitHub
// * git pull origin <branch-name> - Pulls commits from the branch on GitHub
console.log("Hello World!");
console.log("Good afternoon!");
// ! GitHub commands
// * git remote add origin <url> - Sets the url of the repo
// * git remote -v - Shows a list of remotes
const greeting = "Hello World";
console.log(greeting);
// this is a comment after deleting the new-branch
console.log("Done adding js");
let signInFrom = document.querySelectorAll("form")[0];
signInFrom.addEventListener("submit", () => {
alert("Successfull Login!");
});
let signupForm = document.querySelectorAll('form')[1]
signupForm.addEventListener('submit', () => {
alert("Successful SignUp")
})