Git & Github

Git & Github

These are my notes and references on Git and Github.  

https://github.com/donsvederus

Git Command Lines

To See the version:> git ‐‐version

To see configured name:> git config user.name

To see configured email:> git config user.email

To configure the name:> git config ‐‐global user.name “Your Name

To configure the email:> git config ‐‐global user.email”Your@Email.com

To See the Status of a Repository:> git status

To create a new Git repository:> git init

To stage a file:> git add file1 file2 

To stage all files:> git add .

To commit to repository:> git commit -m message or summary

To see a log of the Commits:> git log

 

Resources & References

  • Git VCS system. Command line version, install on desktop, for personal VCS.
  • Github VCS System.  Online version control, made for collaboration, and cloud.
  • GitKraken Git GUI. Makes Git more visual and accessible.

Terminal Command Lines

clear –> Clears the terminal.

pwd –> Print working directory to see the path.

ls  –>  list of whats in current folder.
ls folder name or path –> To see whats inside a folder.
ls -a  –>  To see all files including hidden.

cd folder name or path –> Change Directories
cd..  –> backwards or up one directory

touch filename.ext  –> To create a file. (note: don’t use spaces in names, use -_ or case or use “String”)
touch filename1.ext filename2.ext filename3.ext  –> To create multiple files.
touch dir1/dir2etc…/filename.ext –> To create a file to a different directory.

mkdir foldername  –> To create a directory folder. (note: don’t use spaces in names, use -_ or case or use “String”) has the same rules as touch.

rm filename  –> To remove a file.  Permanently
rm -rf  foldername  –> To remove a folder. Permanently

start .  –> (with dot) opens a GUI explore window
start folder name or path –> Opens GUI inside folder