Giter Club home page Giter Club logo

git_basics's People

Contributors

crmsnbleyd avatar finallyobsolete avatar finbob12 avatar harshkapadia2 avatar hritik2002 avatar imgbotapp avatar kartiksoneji avatar mahmouddawood avatar mtwn105 avatar shefali12-ab avatar tusharnankani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

git_basics's Issues

Add meta tags to the web site

  • The meta tags will have to be inserted by adding them in the head of a Docinfo file.
  • The meta tags to be inserted
<meta name="keywords" content="git, github, git_basics, git bash, basics of git, basics of github">
<meta name="description" content="A web site for the basics of Git and GitHub!">

Add line in `git push` sub-section.

  • Add a line at the end of the git push sub-section in the Commands section.
  • File path: ./src/commands/git_push.adoc
  • Syntax: ''' (Please leave a blank line above this line.)

A line like the one below will be created, indicating the end of the sub-section.


Change absolute links to relative links.

  • The links in the README.md and CONTRIBUTING.md files that point to files in the repo are absolute links rather than being relative links. Please correct them to relative links, taking care of directory levels.
  • This issue is not related to external links (ie, links that go to external web sites) in those two files.
  • Example of relative links:
    CONTRIBUTING.md.
    [CONTRIBUTING.md](CONTRIBUTING.md) ✔️
  • Example of absolute links:
    CONTRIBUTING.md.
    [CONTRIBUTING.md](https://github.com/HarshKapadia2/git_basics/blob/master/CONTRIBUTING.md)

Links to be added to `miscellaneous resources` section.

Add icons to admonitions

  • Read up on admonitions from the AsciiDoc Syntax Reference.
  • The problem is that these icons are rendered in .adoc (Asciidoctor) files, but not in the rendered HTML file that is hosted.
    Eg:

.adoc file:
image

Rendered HTML file:
image

  • See if the icons can be rendered.
  • If not, a workaround could be to include the image files in ./src/images and then insert them using a style tag in the head of a Docinfo file.

Slightly misleading statement on hashing and compression

https://harshkapadia2.github.io/git_basics/ says

Git actually compresses files with the zlib library and then hashes them

Which implied when I read it that a git hash is sha1(zlib_compress(data)).

However, the note a few paragraphs down corrects my misunderstanding:

If blob 16\0Git is amazing! is hashed using SHA1, the same hash (1a3851c172420a2198cf8ca6f2b776589d955cc5) will be generated!

Perhaps changing the original statement to something like "Git actually compresses files with the zlib library after hashing them"

Addition of new commands

I came across a few git commands which you could add -

  • git reflog
  • git branch -vv
  • git pull -r
  • git stash
  • git stash list
  • git stash apply
  • images of git reset and git rebase

1
2

Add information on Changelogs.

Size for pictures.

  • Add a standard size to each picture.
  • Format: image::img_name.ext[size, size]
  • Size is usually [600, 600], but can be tweaked as per requirements.
  • Check if size negatively affects mobile view.

Features to be added to the `git commands` section.

Delete extra files from the 'gh-pages' branch on build.

  • This repo uses GitHub Actions and has a CI/CD process that builds the web site from the master branch and pushes all the built files to the gh-pages branch from where GitHub Pages deploys the site.
  • If files are renamed in the master branch and the CI/CD process is run, the original file and the new renamed file are both found in the gh-pages branch.
  • The problem to be solved is that the original file should not be present in the gh-pages branch after the CI/CD process runs.
  • One solution could be to delete all the files in the gh-pages branch before the newly built files are pushed into the branch.
  • Please note that, I do not want the entire gh-pages branch to be deleted and created every time the CI/CD process runs, as I want to have a history of the previous versions of the site.
  • Do let me know if you have any other solution in mind.

Additions to the `General # 3` section.

This section will be placed after the GitHub section.

  • Myths of open source. (Video ref)
    • Security issues
    • Monetary issues
    • Difficult to contribute
    • Only for the elite
    • Many more
  • Advantages of open source.
    • Indirect value
    • Show case skill
    • Helping community
    • Many more

Best practices for links.

  • Correct hyperlinks with text as 'here' or 'this' with meaningful text. (Might have to change the structure of sentence, obviously keeping the meaning and tense the same.)
    Eg:

  • Remove hyperlinks on pictures.

Add to `What is Git?` section in `General # 1`.

The name "git" was given by Linus Torvalds when he wrote the very first version. He described the tool as "the stupid content tracker" and the name as (depending on your mood):

  • random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of "get" may or may not be relevant.
  • stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang.
  • "global information tracker": you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room.
  • "goddamn idiotic truckload of sh*t": when it breaks

Source: https://github.com/git/git/blob/master/README.md (bottom of file)

PS: Add about the Git e-mail list (link in the abv README.md file itself.)

Link specific parts of the git_basics livestream to every appropriate section of the web site.

  • Add a link (with the timestamp of the appropriate section) of the git_basics livestream to the top of the appropriate section of the web site.
  • All the topics and commands covered in the livestream are listed in the description of the video.
  • On YouTube, click on 'share' and copy the link after checking the 'start at' checkbox (ensure that the correct timestamp for that section is entered in the input).

Eg: Add 'Watch a short video on git pull.' to the top of the git pull sub-section of the web site.

Features to be added to the `GitHub` section.

Add the following features:

replace master by main.

Since from now on all repositories have default branch main, I think either all masters on the website should be replaced by main, or a notification on top of the page could be given for now.

Pronoun correction in `Working Tree` sub-section.

  • Change pronouns in the Working Tree sub-section of the Terms section from second person ('you') to third person ('one').
    Eg:

    • You should do this. ❌
    • One should do this. ✔️
  • File path: ./src/terms/working_tree.adoc

Merge conflicts

All external links should open in a new tab.

NOTE: Tackle this after issue #23.

  • Currently, all external links (ie, links leading to web sites away from the git_basics web site itself) open in the same tab as the web site.
  • All the external links should open in a separate tab.
  • Implement the first method listed in the 'Links with attributes' sub-section of the Asciidoctor Syntax Reference.

Add `Branches` section.

  • Add Branches section to the General # 2 section, after the Internal Working of Git sub-section.
  • Use Gaurav Sen's Git video and this git for some commands

Links in code example blocks overflow.

  • The links in example code blocks are overflowing on the right side of the page. (The red borders are for debugging. The picture below is from the git clone sub-section of the web site.)

  • Behaviour observed in the Android app of MS Edge and in browsers on iPhones (checked on Chrome and Safari iOS apps).

  • Try to break the link text so that it occupies just the viewport and does not overflow.

Addition of command to revert the last commit

You could add the following commands

  • git reset --soft HEAD~1 - used to revert the last commit and retain the changes when changes aren't pushed
  • git reset --hard HEAD~1 - used to revert the last commit and discard the changes when changes aren't pushed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.